• Resolved joaodmateus

    (@joaodmateus)


    I’m using Litespeed, Elementor Pro Theme builder and created custom JavaScript in my child theme.

    I enabled JS delay and added lots of exclusion, but the custom scripts that are enqueued in <\body> end are not being loaded, only the ones that are enqueued in head.

    I tried different url to exclude them, but can’t figure out how to solve this.

    If someone could help, it would be amazing, cause I would be able to increase a lot the performance on mobile.

    thank you in advance.

    • This topic was modified 2 weeks, 1 day ago by joaodmateus.
Viewing 1 replies (of 1 total)
  • Plugin Support qtwrk

    (@qtwrk)

    if it’s inline js , you may need to put a piece of this inline js to exclude it

    for example , just imagine your code is

    <script ...>
    document.write('Hello, World!');
    </sript>

    then you can put document , write , Hello or World to exclude , of course, try to use narrowest option as possible to avoid exclude other javascript

    for example if you have multiple js start with document, let’s say document.readyState , document.AddEventListener and document.write , then put document will exclude them 3 , then you should use document.write to exclude the last one only

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.