You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "François Facon (JIRA)" <ji...@apache.org> on 2011/04/03 15:51:05 UTC

[jira] [Updated] (TAP5-1486) When Tapestry adds CSS and JS files to the page, it should ensure that CSS files are above any JavaScript files

     [ https://issues.apache.org/jira/browse/TAP5-1486?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

François Facon updated TAP5-1486:
---------------------------------

    Attachment: patch Data for DocumentLinkerImplTest.txt
                patch DocumentLinkerImpl.txt

As CSS are first include at the top, with this tiny change we add js file just after CSS inclusion. 
But perhaps you have in mind more code in order to provide reorder all the elements.

> When Tapestry adds CSS and JS files to the page, it should ensure that CSS files are above any JavaScript files
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-1486
>                 URL: https://issues.apache.org/jira/browse/TAP5-1486
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.3.0, 5.2.5
>            Reporter: Howard M. Lewis Ship
>            Priority: Minor
>         Attachments: patch Data for DocumentLinkerImplTest.txt, patch DocumentLinkerImpl.txt
>
>
> 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>.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira