Uploaded image for project: 'Click'
  1. Click
  2. CLK-363

Allow Page htmlImports to override Control imports

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.5 M2
    • 1.5 M3
    • 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.

      Attachments

        Activity

          People

            medgar Malcolm Edgar
            sabob Bob Schellink
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: