• Resolved titsmaker

    (@titsmaker)


    Is it possible to combine JS into 2 separate files and load one of them deferred and another regular way?
    I need this because I want to avoid deferring of a few libraries, but “JS Deferred Excludes” option does not work for them supposedly because they are being combined.

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

    (@qtwrk)

    Hi,

    I am not sure if that is possible , you may need to exclude that effected file from both defer and combine , that case you should have other files being combined and only the chosen one not being touched.

    Best regards,

    Thread Starter titsmaker

    (@titsmaker)

    The problem is it’s not one file – it is Revolution Slider scripts (at least 7 separate JS files). Of course Rev Slider didn’t take care to supply us with combine and defer options. That’s why I want to merge them into separate script which is not deferred.

    Plugin Support Hai Zheng?

    (@hailite)

    Can you tell the reason the other one can’t use JS defer? Is that bcos some inline JS code executed realtime which depend on those JS?

    Thread Starter titsmaker

    (@titsmaker)

    They are deferred actually. I just want to combine them as well to decline number of requests.

    Thread Starter titsmaker

    (@titsmaker)

    I am sorry for spending your time – I found that problem with slider was caused by another plugin and it works OK when deferred.
    But there’s another question – is it possible to defer render blocking outer JS request to CDN created by one of plugins?

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    You mean use CDN to load deferred JS ?

    Best regards,

    Thread Starter titsmaker

    (@titsmaker)

    I mean that one of my plugins loads a script from their CDN and that script is render-blocking even if defer JS is enabled in LiteSpeed settings.

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Could you please provide the report number?

    Best regards,

    Thread Starter titsmaker

    (@titsmaker)

    @qtwrk here it is – VJUKFTDV

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Seems you are running maintenance mode , so I couldn’t really check anything.

    May I know which plugin you are talking about ?

    Best regards,

    Thread Starter titsmaker

    (@titsmaker)

    It was temporarily – now the site is active. I am talking about Judge.me reviews widget.

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    I just checked your site with GTMetrix , but I don’t see that judge review JS in warning list.

    Best regards,

    Thread Starter titsmaker

    (@titsmaker)

    It’s not in the list, but in waterfall mode it’s shown as blocking. Also it loaded before render start although it’s completely unneeded, therefore I want to move it somewhere further in requests queue.

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    From source code

    <script type='text/javascript' data-cfasync="false" async src='https://cdn.judge.me/judgeme_widget_v2.js'></script>

    Since the author added async, and didn’t add defer, this leads me to believe it was done by purpose , perhaps defer it will break it.

    I’d suggest you to contact the plugin author for this.

    • This reply was modified 5 years, 8 months ago by qtwrk.
Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Combine JS into 2 files’ is closed to new replies.