defer 3rd party scripts




Wordpress LScache Plugin: defer 3rd party scripts

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hi Folks, Our site uses some 3rd party JavaScript files which may not be enqueued using proper methods. GT Metrix shows the following scripts are not deferred by LiteSpeed Cache (JS Defer is on for all other scripts): https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js https://forms.ontraport.com/v2.4/include/minify/?g=genjs-v3 https://www.insightwebsites.net.au/wp-includes/js/jquery/jquery.js?ver=1.12.4-wp https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js https://app.ontraport.com/js/libs/materialize/dist/js/materializev2.min.js https://optassets.ontraport.com/opt_assets/libraries/opt_date_time_picker/dist/opt_date_time_picker_lib.js https://optassets.ontraport.com/opt_assets/blocks/common/jQueryPageBackgroundPro/js/libs/underscore.js https://app.ontraport.com/js/globalize/globalize.js https://optassets.ontraport.com/opt_assets/blocks/common/jQueryCloneVal/jquery-cloneVal.js One of the ontraport.com scripts in particular is loaded using tags in the footer. Is there a way we can defer these 3rd party scripts? Thanks, Steve Hi, Could you please go to admin area , left-side bar ?> LiteSpeed Cache ?> Toolbox ?> [6] Debug Settings in this page: set Debug Log to Admin IP Only add your IP into Admin IPs (you will see your IP below.) set Debug Level to Advanced save changes. Now go to [7] Log View, click on admin-bar LiteSpeed Cache ?> Purge All then click button [D] Clear Log , keep this window open, dont close it nor navigate away from it. Now ,open a new window, access your home page , like https://your_domain.com/?test (please do remember attach ?test to it) once page is loaded , go back to Log View window and refresh this page, you should see the debug log is showing up. Then please copy all the text , paste it into https://paste.ubuntu.com/ then post the link it generated for you. Best regards, Hi. Here is the paste: https://paste.ubuntu.com/p/Snfrvv22S3/ Hi, These JS in questions seems are loaded by inline JS , please try enable this option https://i.imgur.com/8415uX4.png then purge all , and see how it goes Best regards, Hi, This option is already enabled. Cheers. Hi, I will need to check with dev about this. it seems the plugin didnt even detect this inline js. Best regards, Hi, Following up.



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference