[
https://issues.apache.org/jira/browse/TAPESTRY-2364?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12637332#action_12637332
]
Onno Scheffers commented on TAPESTRY-2364:
------------------------------------------
@Filip
Hi Filip,
I know that dom:loaded will be called before images etc. are loaded, but that
is just my point: The js-files that attach to the event may not be loaded
before the images. As a matter of fact: The dom:loaded event should have passed
by the time the scripts are loaded (since the browser doesn't wait for them,
but the dom is ready).
Prototype seems to be smart and fires the event, even if it the listener is
attached after the event actually occured, but I've had this problem with
JQuery a while back where Javascripts couldn't act on the domloaded event
anymore because they were loaded after the dom was ready.
> 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
>
> Attachments: sayHello.js, TestFast.html, TestSlow.html
>
>
> 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]