Support » Plugin: LiteSpeed Cache » Cloudflare Rocket Loader exclusion [feature request]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Hai@LiteSpeed⚡

    (@hailite)

    Can you specify adding that attribute in which process? e.g. When doing JS minify or combine? Or just original JS src without any optimization?

    When JS file is on the list for this attribute, the original file will have set attribute.
    When minification is set, the minified files will have set attribute.
    When combined, all JS on this list should be in a separate file and this separate file will have the attribute. That would be ideal, but if it’s too complicated for having an extra file for combined JS with this attribute, the first 2 scenarios will be very useful anyway. Thank you so much!

    Plugin Support stanley@litespeed

    (@stanleylitespeed)

    Hi @pixtweaks, may I confirm the data-cfasync is still an official attribute can bypass Rocket Loader and are you experiencing on your site?

    Jaro

    (@pixtweaks)

    Yes, I have to do it manually otherwise website breaks, if it’s part of the plugin it would help a lot, and I think more people would use Rocket Loader too. Thank you very much!

    Plugin Author Hai@LiteSpeed⚡

    (@hailite)

    Currently all JS will have attribute defer if you enabled Load JS Deferred. Do you want we all that cfasync to all deferred JS or just curtain ones?

    Jaro

    (@pixtweaks)

    It has the opposite effect, when we add data-cfasync=”false”, Rocket Lodar will bypass those files. So we don’t need it to add this attribute to any JS file by default, if they’re deferred or not. I think we need two more input boxes for names of JS files:
    1st adds data-cfasync
    2nd adds data-cfasync and minifies

    In both cases, these files will be excluded from the rest of JS optimization.

    I’m happy with this because to add files combination, it would be too complex and I don’t think anybody would go to that complexity when optimising a website.

    Thank you

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Cloudflare Rocket Loader exclusion [feature request]’ is closed to new replies.