• Resolved insightdes

    (@insightdes)


    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 <script> tags in the footer.

    Is there a way we can defer these 3rd party scripts?

    Thanks,
    Steve

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support qtwrk

    (@qtwrk)

    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, don’t 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,

    Thread Starter insightdes

    (@insightdes)

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    These JS in questions seems are loaded by inline JS , please try enable this option

    View post on imgur.com

    then purge all , and see how it goes

    Best regards,

    Thread Starter insightdes

    (@insightdes)

    Hi,

    This option is already enabled.

    Cheers.

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    I will need to check with dev about this.

    it seems the plugin didn’t even detect this inline js.

    Best regards,

    • This reply was modified 4 years, 6 months ago by qtwrk.
    Thread Starter insightdes

    (@insightdes)

    Hi,

    Following up.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘defer 3rd party scripts’ is closed to new replies.