#3814 - Theme options specifying which CSS/JS files to merge into 'global'
| Identifier | #3814 |
|---|---|
| Issue type | Feature request or suggestion |
| Title | Theme options specifying which CSS/JS files to merge into 'global' |
| Status | Completed |
| Tags |
Type: Performance (custom) |
| Handling member | Chris Graham |
| Addon | core |
| Description | If CSS/JS files are consistently used together, they can be merged.
Previously we tried to automatically detect what CSS/JS files were used on the home page. However, it was over-complex and unstable when caching is involved, making it very difficult to debug and making the code horrible. A better approach is just to make it configurable. We can then have something in global.css and global.js to append extra files, as defined by the configuration - and then make require_css/require_js smart enough to not actually include files that will be included into the global one anyway. |
| Steps to reproduce | |
| Additional information | Document the option in tut_performance. |
| Funded? | No |
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".


Comments
There have been no comments yet