Easy include JS / CSS files on specific pages
For example in articles I am using images with lightbox. I want lightbox to be enabled on specific menu items or even the whole com_content component! (I am doing it now with custom module but if it could be a built-in way this will save page-load time, less kilobytes, HTTP requests )
1 comment
-
Anonymous
commented
Yes I am agree with you : only load the specific Js or Css for the page where is used.
And I would add :
- for a new extension added, choose if we want to use their css by default (ideal for novice user) or if we want to use our css (for advanced user). Because some extensions use several css sheets just only for some css styles = bad for http requests !
- put js on bottom (recommanded for performance) for extensions added and of course default installation of joomla !
