9 ms·
Screw the layout, whoever came up with the dependency manager is a friggin' genius. <script src="/js/lib/rwd-images.js,lib/respond.min.js,lib/modernizr.custom.
by bstar 15y ago
Screw the layout, whoever came up with the dependency manager is a friggin' genius.
<script src="/js/lib/rwd-images.js,lib/respond.min.js,lib/modernizr.custom.min.js,globe-define.js,globe-controller.js"></script>
- mark242 15y agoWhat, a servlet that does a split and a concat?
- bstar 15y agoDid you actually play with the url? It pulls in the dependencies in one file, in any order. The genius part is that it's creating cached custom dependencies for each page that could potentially be shared by other pages. This is the most efficient dependency management approach I've seen. For sites that could have hundreds to thousands of pages, css/js asset & dependency management is so critical. Something doesn't need to be difficult to implement to be extremely useful.
- xentronium 15y ago<shameless plug> If you like that idea, you might want to take a look at library I am developing in my free time. The idea is that you specify things you need (for example Mootools:Core and Mootools:More:FormValidation) and dependency manager pulls the required code with dependencies in correct order. It is in ruby, though (rack middleware + standalone packager). http://xentronium.me/jsus/demo/ http://xentronium.me/jsus/demo/ http://xentronium.me/posts/jsus-demo-packager http://xentronium.me/posts/jsus-demo-packager -- some explanation </shameless plug>