loading scripts properly

Discussion in 'WordPress' started by AtSeaDesign, Mar 9, 2011.

  1. #1
    I noticed that one of my plugins is duplicating loading of some scripts. I read about the wp_enqueue_script feature at http://weblogtoolscollection.com/ar...operly-to-wordpress-part-1-wp_enqueue_script/

    but I'm not sure where you add this. Is it plugin specific? Do I add it in one place in the admin files?

    The above link has some good info but I'm used to doing things myself and I have no idea how WP handles this type of stuff.

    When all my plugins are active I have 20+ scripts. Hardly optimized so I want to lazyload so to say only when they are needed on the page.
    Does anyone have a 'dummies' explanation on how to implement this feature?
     
    AtSeaDesign, Mar 9, 2011 IP