Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.5 M2
-
None
-
None
Description
Starting with 1.5-M1, Page allows us to import JS and CSS.
It would be nice if Page could also expose a boolean property to inform PageImports not to include the Controls JS and CSS.
Reason: Rule #1 of Yahoo Performance Rules states that the making connections to the server is expensive. If a Page imports 10 CSS and 10 JS, the browser has to make 20 connections to the server. For a sites HomePage it would be great to optimize this to only 1 CSS and 1 JS. Libraries such as YUICompressor allows one to merge and compress all the JS and CSS into a single file that can be served from the Page. By allowing the Page to override the Control imports, one could have the Page import the single monolithic CSS and JS file, and skip the Control imports. Thus making for a much faster Page experience.
Page could expose a property "overrideControlImports" which indicates that Page will include all Control imports in an optimized way.
Moving this issue to 1.5-M3