Hi,
This is my first post here - greetings from Latvia
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