tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Onno Scheffers (JIRA)" <...@tapestry.apache.org>
Subject [jira] Commented: (TAPESTRY-2364) YSlow Recommendation: Write Scripts at bottom of page
Date Tue, 07 Oct 2008 08:35:44 GMT

    [ https://issues.apache.org/jira/browse/TAPESTRY-2364?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12637417#action_12637417

Onno Scheffers commented on TAPESTRY-2364:

@Davor Hrg

Your solution wouldn't work because if you generate invisible content on the server and then
make it visible on the client using Javascript, then the application won't work for people
that have Javascript disabled. For me it is an absolute requirement to have pages work without

In my case I'm showing a couple of questions on the page. For each question it is possible
to add a note and to upload a file. Since adding a note or attaching a file is the exception
rather than the rule and since the textarea and upload-field take up precious space and may
even confuse users, we hide those areas using Javascript and add a coule of icons for collapsing
the areas.
This improves the user-experience for people that have Javascript enabled, but still allows
people without Javascript to see the areas and use their functionality.

This is really a very common approach that is being used in several companies I've worked
for, especially for government work where it is essential users can access the web applications
without Javascript.

> 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, 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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org

View raw message