TheTempleNews / zombie

This is the theme for the website of The Temple News.
http://temple-news.com
0 stars 0 forks source link

develop method for conditionally enqueuing js for special issues #39

Open montchr opened 10 years ago

montchr commented 10 years ago

Consider passing an array of page/post slugs for plugins such as FitText and Masonry to load on.

But keep in mind that FitText is also loaded with site banner headlines...

montchr commented 10 years ago

For now, all JS/jQuery plugins and custom JS are uglified and combined into scripts.min.js, which is enqueued sitewide. This file is altogether about 12K. If a lot more plugins are added, then this method could be problematic, but for now 12K is nothing to worry about.

But the Timeline.JS plugin is still left enqueued only on the Reunion 2013 page via reunion-2013-functions.php due to its massive size and the way it links to its assets.