• Resolved skillsharejp

    (@skillsharejp)


    If a script has async attribute like this;

    <script data-minify="1" async src="url"></script>

    Does Flying Scripts skip this file even if we indicate that specific script to be delayed?

    Other delay JS features like in WP Rocket can delay the same script, but Flying Scripts is not delaying even the time out is set to 5000*1000 aka Never.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Gijo Varghese

    (@gijo)

    @skillsharejp no, Flying Scripts don’t skip based on async or data-minify.

    Thread Starter skillsharejp

    (@skillsharejp)

    Thanks for confirming. I just noticed DOM size (actually the rendering) matters how Flying Scripts gets triggered.

    For example on a page where DOM size is quite large (4,000), Flying Scripts can’t delay any scripts.

    On the other hand, on a page on the same domain with less DOM size, Flying Scripts is actually delaying scripts.

    Have you heard any similar report like this before?

    Plugin Author Gijo Varghese

    (@gijo)

    @skillsharejp

    Possible causes:

    1) There are some serious HTML errors.
    2) Your server doesn’t have enough memory (resources) to parse the HTML.

    • This reply was modified 3 years, 10 months ago by Gijo Varghese.
    Thread Starter skillsharejp

    (@skillsharejp)

    Your server doesn’t have enough memory (resources) to parse the HTML.

    This is so far the most possible cause. Thanks for your feedback as I can’t find serious HTML errors for now.

    Thread Starter skillsharejp

    (@skillsharejp)

    One more question. Perfmatters delay can handle both pages, doesn’t matter how large is the DOM is. But only Flying Scripts can’t handle like in previous post. (Every test is done on the same site, same condition.)

    Do you think this is also related to how much RAM the serve has?

    Plugin Author Gijo Varghese

    (@gijo)

    @skillsharejp both are different plugins, might be using different HTML parsers.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Does Flying Scripts skip if the script has “async” attribute?’ is closed to new replies.