[
https://issues.apache.org/jira/browse/TAPESTRY-2364?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12637171#action_12637171
]
Martin Strand commented on TAPESTRY-2364:
-----------------------------------------
But the DOM isn't loaded any faster just because you put the script tag further
up in your document, you still need to load the entire page first.
If I understand your concern, you want your user to see a blank page while
waiting for scripts in <head> to load, rather than your user seeing the full
page while waiting for scripts at the bottom of the page to load? I believe
that's the opposite of what most others want so it should probably not be the
default behaviour.
I believe putting scripts at the bottom so that the page renders faster is
likely what most people want. If someone actually wants the page to render
slower or needs to execute a script before the dom is loaded, there could be a
simple workaround or a configuration option for putting scripts at the top of
the page.
> YSlow Recommendation: Write Scripts at bottom of page
> -----------------------------------------------------
>
> Key: TAPESTRY-2364
> URL: https://issues.apache.org/jira/browse/TAPESTRY-2364
> Project: Tapestry
> Issue Type: Improvement
> Components: tapestry-core
> Reporter: Howard M. Lewis Ship
> Assignee: Howard M. Lewis Ship
> Priority: Minor
> Fix For: 5.0.12
>
>
> Tapestry is already doing a good job on this, by writing the dynamically
> generated <script> block at the bottom of the page, but the external scripts
> should also be down there.
> http://developer.yahoo.com/performance/rules.html#js_bottom
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]