Title: Defer JavaScript
Last modified: September 17, 2022

---

# Defer JavaScript

 *  Resolved [montari](https://wordpress.org/support/users/montari/)
 * (@montari)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/defer-javascript-5/)
 * Hello I have issue with Defer JavaScript. In my website i have mobile version
   view and desktop view and the issue only in the carousel in the mobile view it
   show list instead.
 * How can i find the issue and how to fix it? thank you
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdefer-javascript-5%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Harshad](https://wordpress.org/support/users/bornforphp/)
 * (@bornforphp)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/defer-javascript-5/#post-16021740)
 * [@montari](https://wordpress.org/support/users/montari/) Could you please try
   to uncheck the option “Enable merging of Javascript files” and “Enable merging
   of CSS files” from WP-Optimize > Minify > Javascript and CSS and check if it 
   helps to fix the issue?
 *  Thread Starter [montari](https://wordpress.org/support/users/montari/)
 * (@montari)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/defer-javascript-5/#post-16023443)
 * All the JavaScript options( are uncheck ) and the same issue does not change 
   the problem is with the defer!?
    -  This reply was modified 3 years, 8 months ago by [montari](https://wordpress.org/support/users/montari/).
 *  [Harshad](https://wordpress.org/support/users/bornforphp/)
 * (@bornforphp)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/defer-javascript-5/#post-16025303)
 * [@montari](https://wordpress.org/support/users/montari/) Have you performed a
   conflict test yet?
 * Try deactivating all plugins except for WP-Optimize and see if it is resolved.
 * If so, reactivate each plugin one at a time until you find the culprit. You can
   check for the issue between activating each plugin, so you can see which one 
   is causing problems.
 * Please let us know your findings.
 *  Thread Starter [montari](https://wordpress.org/support/users/montari/)
 * (@montari)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/defer-javascript-5/#post-16026335)
 * Hello i tried to deactivate all plugins but doesn’t help .
 * How can i find the right javascript file to exclude it from the defer process?
   
   Thank you .
 *  [Harshad](https://wordpress.org/support/users/bornforphp/)
 * (@bornforphp)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/defer-javascript-5/#post-16029088)
 * [@montari](https://wordpress.org/support/users/montari/) Do you see any notice
   with the filename in the PageSpeed Insights?
 *  Thread Starter [montari](https://wordpress.org/support/users/montari/)
 * (@montari)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/defer-javascript-5/#post-16030504)
 * Here is from the PageSpeed Insights but i don’t know what file has the issue!
 * [https://pagespeed.web.dev/report?url=https%3A%2F%2Ftunisiaeye.com%2Flisting%2Fel-mouradi-djerba-menzel%2F](https://pagespeed.web.dev/report?url=https%3A%2F%2Ftunisiaeye.com%2Flisting%2Fel-mouradi-djerba-menzel%2F)
 *  [Harshad](https://wordpress.org/support/users/bornforphp/)
 * (@bornforphp)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/defer-javascript-5/#post-16032733)
 * [@montari](https://wordpress.org/support/users/montari/) Found these files in
   REduce used JS:
 * [https://www.gstatic.com/recaptcha/releases/ovmhLiigaw4D9ujHYlHcKKhP/recaptcha__en.js](https://www.gstatic.com/recaptcha/releases/ovmhLiigaw4D9ujHYlHcKKhP/recaptcha__en.js)
   
   [https://pagead2.googlesyndication.com/pagead/managed/js/adsense/m202209080101/show_ads_impl_with_ama_fy2021.js?client=ca-pub-5099022778269307&plah=tunisiaeye.com](https://pagead2.googlesyndication.com/pagead/managed/js/adsense/m202209080101/show_ads_impl_with_ama_fy2021.js?client=ca-pub-5099022778269307&plah=tunisiaeye.com)
   [https://maps.googleapis.com/maps/api/js?key=AIzaSyBkm5TGW5wP7a5PSGTECS9IFPC1z0BG0ks&libraries=places&ver=6.0.2](https://maps.googleapis.com/maps/api/js?key=AIzaSyBkm5TGW5wP7a5PSGTECS9IFPC1z0BG0ks&libraries=places&ver=6.0.2)
   [https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5099022778269307](https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5099022778269307)
   [https://www.googletagmanager.com/gtag/js?id=UA-210351346-1](https://www.googletagmanager.com/gtag/js?id=UA-210351346-1)
 * But all the files are from Google adsense which are loading from your site.
 * Could you please temporary turn off the Google adsense plugin and then check 
   the results on Google PageSpeed Insights?
 *  Thread Starter [montari](https://wordpress.org/support/users/montari/)
 * (@montari)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/defer-javascript-5/#post-16033804)
 * I did all this things and but doesn’t help.
 * Only when Use the “defer” HTML attribute it work normal but doesn’t help with
   speed and performance
 *  [Harshad](https://wordpress.org/support/users/bornforphp/)
 * (@bornforphp)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/defer-javascript-5/#post-16037251)
 * [@montari](https://wordpress.org/support/users/montari/) Could you please check
   the option “Defer all the JavaScript files” from WP-Optimize > Minify > Javascript
   and check if it helps to fix the issue?
 *  Thread Starter [montari](https://wordpress.org/support/users/montari/)
 * (@montari)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/defer-javascript-5/#post-16039792)
 * The problem come from Defer all the JavaScript files !!?
 *  [Harshad](https://wordpress.org/support/users/bornforphp/)
 * (@bornforphp)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/defer-javascript-5/#post-16042505)
 * [@montari](https://wordpress.org/support/users/montari/) If selecting “Defer 
   all the JavaScript files” gives error then could you please check “Defer selected
   JavaScript files” option and add the following files to it
 *     ```
       https://www.gstatic.com/recaptcha/releases/ovmhLiigaw4D9ujHYlHcKKhP/recaptcha__en.js
       https://pagead2.googlesyndication.com/pagead/managed/js/adsense/m202209080101/show_ads_impl_with_ama_fy2021.js?client=ca-pub-5099022778269307&plah=tunisiaeye.com
       https://maps.googleapis.com/maps/api/js?key=AIzaSyBkm5TGW5wP7a5PSGTECS9IFPC1z0BG0ks&libraries=places&ver=6.0.2
       https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5099022778269307
       https://www.googletagmanager.com/gtag/js?id=UA-210351346-1
       ```
   

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

The topic ‘Defer JavaScript’ is closed to new replies.

 * ![](https://ps.w.org/wp-optimize/assets/icon-256x256.png?rev=1552899)
 * [WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance](https://wordpress.org/plugins/wp-optimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-optimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-optimize/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-optimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-optimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-optimize/reviews/)

 * 11 replies
 * 2 participants
 * Last reply from: [Harshad](https://wordpress.org/support/users/bornforphp/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/defer-javascript-5/#post-16042505)
 * Status: resolved