• Resolved FrogDesk Strategy

    (@frogdesk)


    Just noticed that the lightbox doesn’t work when JS is deferred by WP Rocket. Is there any way around this?

    Thanks

Viewing 1 replies (of 1 total)
  • Plugin Author Archetyped

    (@archetyped)

    Hi, SLB’s scripts are loaded in the footer, and so adding defer to these scripts has no performance effect (the defer attribute defers loading until the page’s body has been loaded).

    However, deferring externally-loaded scripts may affect the proper loading order in relation to SLB’s inline scripts. As such, deferring SLB’s JS files is not recommended.

    See this existing ticket for more details on deferring scripts.

Viewing 1 replies (of 1 total)
  • The topic ‘Any way to make it work when JS is deferred?’ is closed to new replies.