Support » Plugin: Simple Lightbox » Any way to make it work when JS is deferred?

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)
  • You must be logged in to reply to this topic.