WordPress retina.js - net::ERR_ABORTED 404

Hi,

This is my first post here - greetings from Latvia :wink:

To troubleshoot this you need a Apple Retina Screen!

I got a problem with retina.js not pointing at @2x images on WordPress site.

I get an Error when inspecting in Chrome image on Retina screen:
rocket-loader.min.js:1 GET https://www.webdresser.com/wordpresswordpress/wp-content/uploads/2019/07/retina.min_.js?ver=5.2.2 net::ERR_ABORTED 404
https://ajax.Cloudflare.com/cdn-cgi/scripts/a2bd7673/Cloudflare-static/rocket-loader.min.js

WORKS GREAT - https://www.stampa.lv/ DNS points to my hosting company

NOT WORKING - https://www.webdresser.com/ DNS points to Cloudflare

I use this function in functions.php (undrer ChildTheme folder):

// Make WordPress Retina Ready
function jk_retina_script() {
wp_enqueue_script(‘jk_retina’, ‘https://www.webdresser.com/wordpress/wp-content/uploads/2019/07/retina.js’, null, ‘’, true);
}
add_action( ‘wp_head’, ‘jk_retina_script’ );

All the images are uploaded in 2 version - normal one and with @2x at the end.
image.jpg
[email protected]

How can I fix this error?

Thanks,
Sandris

What makes you believe this is Cloudflare related?

Because of this.

I will try to deactivate all the plugins 1st.

In that case try disabling Rocket Loader.

I use Divi theme and they got nice feature called Safe Mode

Enabling Safe Mode will temporarily disable features and plugins that may be causing problems with your Elegant Themes product. This includes all Plugins, Child Themes, and Custom Code added to your integration areas.

  • I just reinstalled WordPress, but nothing helped - still got them 2 errors.

I just disabled Rocket Loader under Cloudflare. How long should I wait to re-check the site?

Well, if you disabled Rocket Loader and it doesnt show up any more but you still experience the issue it is most likely really not Cloudflare related.

1 Like

Okey. I will keep troubleshooting then. Thanks. :wink:

1 Like

This topic was automatically closed after 14 days. New replies are no longer allowed.