• Resolved slodaddy

    (@slodaddy)


    How can I prevent the plugin scripts loading on my home page?
    Many of the pages on my site don’t require plugins such as lightbox or cforms, but the script loads anyway causing a substantial hit.

Viewing 2 replies - 1 through 2 (of 2 total)
  • adamh

    (@adamh)

    The only thing you could do is put a conditional statement at the top of your plugin(s) that checks, say, a page variable and only runs the script if it matches

    Thread Starter slodaddy

    (@slodaddy)

    Thanks. I’ll try that.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Prevent plugin script loading til needed’ is closed to new replies.