Return-Path: Delivered-To: apmail-tapestry-dev-archive@www.apache.org Received: (qmail 97416 invoked from network); 7 Oct 2008 11:02:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Oct 2008 11:02:05 -0000 Received: (qmail 66697 invoked by uid 500); 7 Oct 2008 11:02:04 -0000 Delivered-To: apmail-tapestry-dev-archive@tapestry.apache.org Received: (qmail 66653 invoked by uid 500); 7 Oct 2008 11:02:04 -0000 Mailing-List: contact dev-help@tapestry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tapestry development" Delivered-To: mailing list dev@tapestry.apache.org Received: (qmail 66630 invoked by uid 500); 7 Oct 2008 11:02:03 -0000 Delivered-To: apmail-jakarta-tapestry-dev@jakarta.apache.org Received: (qmail 66626 invoked by uid 99); 7 Oct 2008 11:02:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Oct 2008 04:02:03 -0700 X-ASF-Spam-Status: No, hits=-1999.9 required=10.0 tests=ALL_TRUSTED,DNS_FROM_SECURITYSAGE X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Oct 2008 11:01:08 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5A1B4234C21A for ; Tue, 7 Oct 2008 04:01:44 -0700 (PDT) Message-ID: <883652940.1223377304367.JavaMail.jira@brutus> Date: Tue, 7 Oct 2008 04:01:44 -0700 (PDT) From: "Onno Scheffers (JIRA)" To: tapestry-dev@jakarta.apache.org Subject: [jira] Commented: (TAPESTRY-2364) YSlow Recommendation: Write Scripts at bottom of page In-Reply-To: <705282305.1208625022937.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/TAPESTRY-2364?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12637444#action_12637444 ] Onno Scheffers commented on TAPESTRY-2364: ------------------------------------------ Hi Davor, I'm glad you agree that we should be able to at least configure where the scripts are inserted. The problem with the solution you give here is that 1) It is a hack to get something working that is actually quite common behavior. 2) It makes the page visible only after all the resources are loaded or loading and the scripts are all done running. This slows down page-loading instead of making it faster, defeating the whole purpose of adding the scripts to the end of the page. I think we all agree now that it does make a difference if the scripts are included in the head-section or at the bottom of the page and it may cause problems for people. If you look around at existing websites, nearly all of them have the scripts included in the head section. It is the most common approach and therefore the expected behavior for most people using the framework. Therefore I think the default behavior should be to include those file in the head-section. But if it is at least configurable, I'm happy. > 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