Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-1486

When Tapestry adds CSS and JS files to the page, it should ensure that CSS files are above any JavaScript files

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 5.3, 5.2.5
    • 5.3
    • tapestry-core
    • None

    Description

      From the "Audit" tab of Chrome Developer Tools:

      The following external CSS files were included after an external JavaScript file in the document head. To ensure CSS files are downloaded in parallel, always include external CSS before external JavaScript

      I think the best order would be:

      Add all CSS files first; add them before any <script> tag or, failing that, at the end of the <head>.

      Add all JavaScript files second; add them after any <link> tag or, failing that, at the end of the <head>.

      Attachments

        1. patch DocumentLinkerImpl.txt
          1 kB
          François Facon
        2. patch Data for DocumentLinkerImplTest.txt
          1 kB
          François Facon

        Activity

          People

            frafac François Facon
            hlship Howard Lewis Ship
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: