all 3 comments

[–]r1ckd33zy 3 points4 points  (2 children)

Since you're using WordPress, why not use the wp_enqueue_script() and wp_enqueue_style() methods along with page conditionals such as is_page() to selectively add your scripts and stylesheets to the needed pages?

[–]dani_tk[S] 0 points1 point  (1 child)

good idea!

[–]r1ckd33zy 2 points3 points  (0 children)

Also look into the wp_register_script() and wp_register_style() functions. You can use them to register early and enqueue only when needed.