• Hi. Thanks for the great plugin.
    The problem your plugin has with cache plugins is that when js files are merged, “use strict”; Causes an error. Some plugins use variables without declaration. Please fix this problem in future updates.

    Thanks

Viewing 1 replies (of 1 total)
  • Plugin Author Patrick Sletvold

    (@16patsle)

    Hi,
    I’ll look into it and see what I can do, but it comes down to what my build tools support. I might be able to figure out something so it won’t cause an error however (though I would think the JS code being in its own function closure should make sure strict mode doesn’t affect other code already, but I’ll look into it). Then I’ll bundle it up together with some other fixes, and probably release it as a patch update. In the mean time, I assume a non-ideal workaround would be to exclude lazysizes from the merging of script files.

Viewing 1 replies (of 1 total)
  • The topic ‘Remove “use strict”;’ is closed to new replies.