#663 - Javascript and CSS include demodularisation

Identifier #663
Issue type Feature request or suggestion
Title Javascript and CSS include demodularisation
Status Completed
Tags

Type: Performance (custom)

Handling member Chris Graham
Addon core
Description If the front page of a zone is viewed by a Guest, and we're loading up the Javascript/CSS dependencies via the initially-seeded self-learning cache, at this point:
- save what CSS and Javascript files are used into the values table, under resources__<zone>
- merge all the resources together when outputting CSS and Javascript (resources__<zone>.css and resources__<zone>.css), and just reference the merged copy

Then whenever any user views any page of this zone, look to see if resources__<zone> is set, inside the CSS and Javascript output functions. If it is, don't output anything defined under resources__<zone> but do output resources__<zone>.css/resources__<zone>.js.


This should slightly increase performance by reducing the number of scripts/CSS files. It should improve Composr's grade on performance testing tools.
Steps to reproduce

Additional information Success metrics (not guaranteed, but nice targets to check to after work is done, to avoid stopping short):
- Top score in each area of Google PageSpeed
- Top score in each area of YSlow
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".

Rating

Unrated