Closed gcmalloc closed 7 years ago
You mean declaring like:
BOWER_PACKAGES = {
'somelibjs': {
'somelibjs#2.0.0',
'jquery#1.7',
},
'otherlibjs': {
'backbone',
'jquery#1.9',
},
}
?
exactly
Interesting, most of the time I load all libraries in all pages and never think about it. Often I don't need all libraries I'm loading in the home page, but a positive side effect is that by the time the user logs in all libraries are already in the browser cache.
When I have an use case where clients are resource constrained, and a low memory footprint is more important than download time, I use dependency injection.
@gcmalloc I don't really understand what bower has to do with how you use the JS libraries in your HTML. Can you elaborate a little bit more?
Hi, I really love the idea. How hard would it be possible to add support for library groups. For example, I have two pages: