Retina Stripper

For now only occurrences of the retina.js script are dequeue + deregister.
If you identify other Retina related scripts open a support ticket + note the name.
I’ll add any other identified scripts here, to strip them out also.
Problems Serving Retina Images
Some of these problems include…
Retina Image File Size + Mobile
Retina images have massive size. If you’re running a Food Porn blog or
Image Hosting site, this might be okay.
Otherwise, likely your visitor on page time will decrease + conversions tank.
If you’re running a Click Arbitrage site or target Mobile devices, which
may be on 3G networks or simply have under powered CPUs or little memory.
This occurs as size of Retina images eat up all your visitor’s connection
bandwidth, then require heavy CPU + memory usage to render.
Retina Image 404s On Server
Most sites serving Retina images, do so via the horribly simplistic retina.js library.
Unfortunately this script works by…
1) Extracting every DOM tag + rewriting the URL as
image-name@2X.extension back into the DOM.
2) For many sites 100% of these image-name@2X.extension file access
result in a 404 (missing page) error. Then retina.js will walk
the DOM again, removing the @2X from images + the image file
fetch begins again. Since this process runs via AJAX, instantaneously
page load resource usage can spike very high.
3) WordPress caching plugins specifically avoid caching 404 errors. This
is intentional. The idea being, once you notice 404s, you’ll fix them.
If 404s were cached, every permanent + transient 404 error would
require a manual cache flush, to clear the cache object, so the fixed
page could then reach visitors.
4) Thus every 404 @2X image served generates what tends to be an extremely
high resource intensive page view… all for nothing…
5) If you have 20 images on a page you’ll generate 20x 404s.
You can see when this can lead to extreme dips in performance,
which are hard to diagnose, unless you have a Server Savant
doing daily log studies with logtop to monitor page view patterns.
Some servers where I host client sites showed 90%+ of all page
accesses were 404s to Retina images.
As traffic spends or natural traffic increase, 404s increase,
starving Apache + Database till eventually all visitors see become
Apache 500 errors + Database Connection Errors.
Plugin History
This code was originally written to serve my many private hosting clients.
Check [http://FastStableHosting.com]http://FastStableHosting.com WordPress speedups.
This site is a work in process, where my goal is to converge all the many
checklists I’ve published over the years cohesively + retire all other
site with related WordPress performance boosting tips.
Material presented on this site is based on testing, rather than drivel + myth
which pollutes the entire WordPress ecosystem, at every turn.
If you wonder why you keep reading how to speed up your site + nothing seems
to make any difference, likely your reading content written by posers.
Download & install the zip archive
The plugin package installer can be downloaded from the WP2E project tab called “code”.
1 – Select the version to download if this option is available otherwise the “latest” version of the main plugin will be used.
2 – After downloading the zip archive install the plugin package installer in you local environment and activate the script from the plugin list.
3 – Under the section “Plugins” of the admin dashboard you should see a new “Dependencies & Licenses” link. Follow the instructions from this panel to finalize the installation of the missing dependencies.
- Give a name to your project
- Download the Installer Package
- Install & activate the plugin locally
- Install the suggested dependencies
Tips: Use the WP2E panel to add/suggest new dependencies to the local installation. Press F5 in the list of dependencies if the changes are not displayed right away.



