@robocoder opened this Issue on June 25th 2011 Contributor
  1. We should either pre-minimize .css and .js files, or use the build script to do so when packaging. This would allow for more aggressive methods that aren't practical at runtime. It also simplifies the AssetManager ... it only has to load and concatenate (which can be done quickly). (Theoretically, we could even generate the compressed files.)
  2. We're concatenating and minifying a lot of JavaScript now. Where possible, we should use a well-known CDN for third-party JavaScript (perhaps as default). This will take some of the load off the server and hopefully increase the chances of loading static assets from the browser's cache.

The problem we have is that the existing use_ajax_cdn code is only accessible by use disable_merged_assets = 1.

  1. We should minify our static content as two separate groups:
    • css and js - independent of which plugins are enabled; this is also the larger group (i.e., jquery, jquery-ui, jqplot)
    • css and js - varies depending on which plugins are enabled
@robocoder commented on September 27th 2011 Contributor

Some ideas if we start refactoring: https://github.com/kriswallsmith/assetic

@mattab commented on December 14th 2012 Owner

Current mechanism seems to work fine so I vote for not changing or adding pre-build logic

This Issue was closed on December 14th 2012
Powered by GitHub Issue Mirror