Title: 404 XHR Error
Last modified: April 4, 2022

---

# 404 XHR Error

 *  Resolved [pforce](https://wordpress.org/support/users/pforce/)
 * (@pforce)
 * [4 years ago](https://wordpress.org/support/topic/404-xhr-error/)
 * Hi, sorry for disturbing, but I get wired 404 errors linked to images that no
   longer exist
    Example: [https://p-force.com/wp-content/uploads/2016/12/BannerPic1@2x.jpg](https://p-force.com/wp-content/uploads/2016/12/BannerPic1@2x.jpg)
 *     ```
       RetinaImagePath.check_2x_variant	@	autoptimize_single_74e9d0e….php:21
       RetinaImage	@	autoptimize_single_74e9d0e….php:21
       context.onload	@	autoptimize_single_74e9d0e….php:13
       load (async)		
       Retina.init	@	autoptimize_single_74e9d0e….php:13
       (anonym)	@	autoptimize_single_74e9d0e….php:25
       (anonym)	@	autoptimize_single_74e9d0e….php:25
       ```
   
 * Clearing alle cache on all tools didn’t help.
 * When I deactivate Autoptimize it points to: (retina js Version 1.30)
    [https://p-force.com/wp-content/themes/djpaolo/panel/components/retinajs/dist/retina.js](https://p-force.com/wp-content/themes/djpaolo/panel/components/retinajs/dist/retina.js)
 *     ```
       RetinaImagePath.check_2x_variant	@	retina.js:139
       RetinaImage	@	retina.js:148
       context.onload	@	retina.js:54
       load (async)		
       Retina.init	@	retina.js:49
       (anonym)	@	retina.js:180
       (anonym)	@	retina.js:182
       ```
   
 * Please help to delete the left over string
    Thank you so much
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2F404-xhr-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 13 replies - 1 through 13 (of 13 total)

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [4 years ago](https://wordpress.org/support/topic/404-xhr-error/#post-15525852)
 * Adding `themes/djpaolo/panel/components/retinajs/dist/retina.js` to the comma-
   separated JS optimization exclusion list should ensure the file is not minified
   any more, let’s start there maybe? And maybe disable “Async Javascript” for a
   second as well temporarily?
 *  Thread Starter [pforce](https://wordpress.org/support/users/pforce/)
 * (@pforce)
 * [4 years ago](https://wordpress.org/support/topic/404-xhr-error/#post-15525900)
 * Hi,
    thank you so much for the superfast reply, but these measures didn’t solve
   the problem unfortunately I added /jquery/jquery.js, js/jquery/jquery.min.js,
   themes/djpaolo/panel/components/retinajs/dist/retina.js and deactivated Async
   Javascript
 * Any other hints,
    maybe ?
 * Thank you
 *  Thread Starter [pforce](https://wordpress.org/support/users/pforce/)
 * (@pforce)
 * [4 years ago](https://wordpress.org/support/topic/404-xhr-error/#post-15525909)
 * Hi;
    Deactivated almost everything still persists now with following output
 *     ```
       RetinaImagePath.check_2x_variant	@	retina.js?ver=1.3.0:139
       RetinaImage	@	retina.js?ver=1.3.0:148
       context.onload	@	retina.js?ver=1.3.0:54
       load (async)		
       Retina.init	@	retina.js?ver=1.3.0:49
       (anonym)	@	retina.js?ver=1.3.0:180
       (anonym)	@	retina.js?ver=1.3.0:182
       ```
   
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [4 years ago](https://wordpress.org/support/topic/404-xhr-error/#post-15525913)
 * in that case I would take a step back and First and foremost try to identify 
   what is breaking things by just disabling CSS or JS or HTML or Image optimization(
   incl. lazyload) to see which one might be causing this?
 * (to be clear, I don’t see these request for those X2 images when I test, but 
   I suppose retina JS doesn’t think my screen worthy 😉 )
 *  Thread Starter [pforce](https://wordpress.org/support/users/pforce/)
 * (@pforce)
 * [4 years ago](https://wordpress.org/support/topic/404-xhr-error/#post-15526031)
 * Hi,
    thank you for assisting me further on
 * I deactivated everything
    except really simple ssl and your plug in
 * Still persists ??
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [4 years ago](https://wordpress.org/support/topic/404-xhr-error/#post-15526102)
 * and in Autoptimize, did you try disabling JS or CSS or HTML or … options?
 *  Thread Starter [pforce](https://wordpress.org/support/users/pforce/)
 * (@pforce)
 * [4 years ago](https://wordpress.org/support/topic/404-xhr-error/#post-15526107)
 * Hi,
    yes, I even disabled the plug in, in general do I have to opt out this prior
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [4 years ago](https://wordpress.org/support/topic/404-xhr-error/#post-15526117)
 * Do you mean the error persists even if AO is off?
 *  Thread Starter [pforce](https://wordpress.org/support/users/pforce/)
 * (@pforce)
 * [4 years ago](https://wordpress.org/support/topic/404-xhr-error/#post-15526139)
 * Hi,
    yes all wp plug ins are now deactivated, except really simple ssl
 * if I check through chrome > untersuchen > Netzwerk > XHR
 * here is a link of the error screenshot jpg > [https://ibb.co/zfYsQDP](https://ibb.co/zfYsQDP)
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [4 years ago](https://wordpress.org/support/topic/404-xhr-error/#post-15526166)
 * Very weird, I can’t reproduce locally on my laptop, but neither on a MacOSX Safari
   on browserstack, nor on [a webpagetest.org test](https://www.webpagetest.org/result/220404_AiDcX5_FZ1/1/details/#waterfall_view_step1).
 * Might you have some setting in Chrome or an Chrome addon that causes the retina.
   js logic to behave differently?
 *  Thread Starter [pforce](https://wordpress.org/support/users/pforce/)
 * (@pforce)
 * [4 years ago](https://wordpress.org/support/topic/404-xhr-error/#post-15526206)
 * Hi
    I inspected with FF > [https://ibb.co/xXMWfzL](https://ibb.co/xXMWfzL)
 * same
 *  Thread Starter [pforce](https://wordpress.org/support/users/pforce/)
 * (@pforce)
 * [4 years ago](https://wordpress.org/support/topic/404-xhr-error/#post-15526220)
 * Hi,
    I used your link to reproduce same [https://ibb.co/JFH6hn9](https://ibb.co/JFH6hn9)
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [4 years ago](https://wordpress.org/support/topic/404-xhr-error/#post-15527065)
 * very weird, jsut [re-ran a webpagetest test](https://www.webpagetest.org/result/220405_AiDcK3_3VT/)
   and still not seeing those .. :-/
 * the only thing I can suggest (as the problem is there with and wihtout Autoptimize)
   is to check in with the theme developer, asking how the retina JS can be disabled(
   as you don’t seem to have retina-specific images, which are the “X2” versions)?

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘404 XHR Error’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

 * 13 replies
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/404-xhr-error/#post-15527065)
 * Status: resolved