Based on some feedback that I’ve gotten from the list (thanks all!),
I’ve added some new functionality and improved the existing.
Based on the attributes, these tags will render:
* The url to a css or js file
* The content of a css or js file
* The content of a css or js file wrapped in the appropriate
or html tags.
– so that you can do asset packaging (reference all of your
requests and speed page load time).
now track their own dependencies so your files all report an
accurate LAST-MODIFIED date/time. This keeps your server from
having to re-serve your css and js files unless their content has
Fast page loads for visitors, reduced bandwidth and server
requirements for you!
WHY USE STYLES 'N SCRIPTS
John originally suggested this extension so that should be good enough
for you. But in case you’re still wondering, this extension offers:
* Administrator or Developer permissions for accessing CSS or JS
* Better caching for these files (their cache isn't flushed every 5 minutes like pages but, instead only when updates occur). So your user's browser cache can go to work -- speeding page loads and minimizing server hits. * Separation of concerns - lets extensions that work with pages not get tripped up by CSS and JS files (examples include keyword searches that don't find text in your stylesheets, adding meta keyword or descriptions to pages but not stylesheets, using WYSIWYG or WYSIWYM editors like TinyMCE or FCKEditor to edit your pages but not your css or js files. This also opens the door to extensions aimed at working just with css or js files (look for css & js minification coming soon). * Declutter the Pages tree view. Now it only needs to show the content - not the assets.
Requirements: Radiant 0.6.6+