You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Onno Scheffers (JIRA)" <ji...@apache.org> on 2008/10/25 23:48:44 UTC

[jira] Created: (TAP5-313) Make it possible to put Javascript libraries in the head section again

Make it possible to put Javascript libraries in the head section again
----------------------------------------------------------------------

                 Key: TAP5-313
                 URL: https://issues.apache.org/jira/browse/TAP5-313
             Project: Tapestry 5
          Issue Type: Improvement
          Components: tapestry-core
    Affects Versions: 5.0.15
            Reporter: Onno Scheffers
            Priority: Minor


We've had a discussion about the Javascript issue here: 
https://issues.apache.org/jira/browse/TAPESTRY-2364

Currently Tapestry puts Javascript on the bottom of the page. This will make the page look like it loads faster, because the browser can start rendering the page before the Javascript libraries are loaded.

It is quite common however if you want your page to work without Javascript, that you render out full HTML and then use Javascript to hide parts on the client before the page renders. This way everything is visible to people that don't have Javascript enabled in their browser, but people with Javascript will get a better user-experience.

Currently the result is messy because you see the page being rendered and once the Javascript libraries are all loaded, the sections are hidden. It is all visible to the user and you have to come up with all kinds of hacks to work around that issue. Therefore it would be greatly appreciated if it were possible to configure Tapestry so that users can choose to include the libraries in the head section again.

Having the Javascript included in the head is the way most people are used to, so it would also make things easier for the average Tapestry user.

-- 
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


[jira] Closed: (TAP5-313) Provide configuration to move links to JavaScript libraries to the top of the page

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-313?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship closed TAP5-313.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 5.0.16

> Provide configuration to move links to JavaScript libraries to the top of the page
> ----------------------------------------------------------------------------------
>
>                 Key: TAP5-313
>                 URL: https://issues.apache.org/jira/browse/TAP5-313
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.0.15
>            Reporter: Onno Scheffers
>            Assignee: Howard M. Lewis Ship
>            Priority: Minor
>             Fix For: 5.0.16
>
>
> We've had a discussion about the Javascript issue here: 
> https://issues.apache.org/jira/browse/TAPESTRY-2364
> Currently Tapestry puts Javascript on the bottom of the page. This will make the page look like it loads faster, because the browser can start rendering the page before the Javascript libraries are loaded.
> It is quite common however if you want your page to work without Javascript, that you render out full HTML and then use Javascript to hide parts on the client before the page renders. This way everything is visible to people that don't have Javascript enabled in their browser, but people with Javascript will get a better user-experience.
> Currently the result is messy because you see the page being rendered and once the Javascript libraries are all loaded, the sections are hidden. It is all visible to the user and you have to come up with all kinds of hacks to work around that issue. Therefore it would be greatly appreciated if it were possible to configure Tapestry so that users can choose to include the libraries in the head section again.
> Having the Javascript included in the head is the way most people are used to, so it would also make things easier for the average Tapestry user.

-- 
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


[jira] Updated: (TAP5-313) Provide configuration to move links to JavaScript libraries to the top of the page

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-313?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship updated TAP5-313:
--------------------------------------

    Summary: Provide configuration to move links to JavaScript libraries to the top of the page  (was: Make it possible to put Javascript libraries in the head section again)

> Provide configuration to move links to JavaScript libraries to the top of the page
> ----------------------------------------------------------------------------------
>
>                 Key: TAP5-313
>                 URL: https://issues.apache.org/jira/browse/TAP5-313
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.0.15
>            Reporter: Onno Scheffers
>            Assignee: Howard M. Lewis Ship
>            Priority: Minor
>             Fix For: 5.0.16
>
>
> We've had a discussion about the Javascript issue here: 
> https://issues.apache.org/jira/browse/TAPESTRY-2364
> Currently Tapestry puts Javascript on the bottom of the page. This will make the page look like it loads faster, because the browser can start rendering the page before the Javascript libraries are loaded.
> It is quite common however if you want your page to work without Javascript, that you render out full HTML and then use Javascript to hide parts on the client before the page renders. This way everything is visible to people that don't have Javascript enabled in their browser, but people with Javascript will get a better user-experience.
> Currently the result is messy because you see the page being rendered and once the Javascript libraries are all loaded, the sections are hidden. It is all visible to the user and you have to come up with all kinds of hacks to work around that issue. Therefore it would be greatly appreciated if it were possible to configure Tapestry so that users can choose to include the libraries in the head section again.
> Having the Javascript included in the head is the way most people are used to, so it would also make things easier for the average Tapestry user.

-- 
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


[jira] Commented: (TAP5-313) Provide configuration to move links to JavaScript libraries to the top of the page

Posted by "Onno Scheffers (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12649070#action_12649070 ] 

Onno Scheffers commented on TAP5-313:
-------------------------------------

I have just tested this in the 5.0.16 release.

The issue doesn't seem to be resolved. When you set tapestry.script-at-top to true, the Javascript files are now included at the top of the page but they are still inside the body tag and not in the head section.

Including the scripts in the head is the only cross-browser way to make sure all scripts are loaded before the page starts rendering as far as I know, which is also what was requested in this issue.

> Provide configuration to move links to JavaScript libraries to the top of the page
> ----------------------------------------------------------------------------------
>
>                 Key: TAP5-313
>                 URL: https://issues.apache.org/jira/browse/TAP5-313
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.0.15
>            Reporter: Onno Scheffers
>            Assignee: Howard M. Lewis Ship
>            Priority: Minor
>             Fix For: 5.0.16
>
>
> We've had a discussion about the Javascript issue here: 
> https://issues.apache.org/jira/browse/TAPESTRY-2364
> Currently Tapestry puts Javascript on the bottom of the page. This will make the page look like it loads faster, because the browser can start rendering the page before the Javascript libraries are loaded.
> It is quite common however if you want your page to work without Javascript, that you render out full HTML and then use Javascript to hide parts on the client before the page renders. This way everything is visible to people that don't have Javascript enabled in their browser, but people with Javascript will get a better user-experience.
> Currently the result is messy because you see the page being rendered and once the Javascript libraries are all loaded, the sections are hidden. It is all visible to the user and you have to come up with all kinds of hacks to work around that issue. Therefore it would be greatly appreciated if it were possible to configure Tapestry so that users can choose to include the libraries in the head section again.
> Having the Javascript included in the head is the way most people are used to, so it would also make things easier for the average Tapestry user.

-- 
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


[jira] Commented: (TAP5-313) Provide configuration to move links to JavaScript libraries to the top of the page

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12649248#action_12649248 ] 

Howard M. Lewis Ship commented on TAP5-313:
-------------------------------------------

I understand your issue; sorry for the inconvienience.  I'll be fixing this in 5.0.17 as TAP5-373.

> Provide configuration to move links to JavaScript libraries to the top of the page
> ----------------------------------------------------------------------------------
>
>                 Key: TAP5-313
>                 URL: https://issues.apache.org/jira/browse/TAP5-313
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.0.15
>            Reporter: Onno Scheffers
>            Assignee: Howard M. Lewis Ship
>            Priority: Minor
>             Fix For: 5.0.16
>
>
> We've had a discussion about the Javascript issue here: 
> https://issues.apache.org/jira/browse/TAPESTRY-2364
> Currently Tapestry puts Javascript on the bottom of the page. This will make the page look like it loads faster, because the browser can start rendering the page before the Javascript libraries are loaded.
> It is quite common however if you want your page to work without Javascript, that you render out full HTML and then use Javascript to hide parts on the client before the page renders. This way everything is visible to people that don't have Javascript enabled in their browser, but people with Javascript will get a better user-experience.
> Currently the result is messy because you see the page being rendered and once the Javascript libraries are all loaded, the sections are hidden. It is all visible to the user and you have to come up with all kinds of hacks to work around that issue. Therefore it would be greatly appreciated if it were possible to configure Tapestry so that users can choose to include the libraries in the head section again.
> Having the Javascript included in the head is the way most people are used to, so it would also make things easier for the average Tapestry user.

-- 
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


[jira] Assigned: (TAP5-313) Make it possible to put Javascript libraries in the head section again

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-313?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship reassigned TAP5-313:
-----------------------------------------

    Assignee: Howard M. Lewis Ship

> Make it possible to put Javascript libraries in the head section again
> ----------------------------------------------------------------------
>
>                 Key: TAP5-313
>                 URL: https://issues.apache.org/jira/browse/TAP5-313
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.0.15
>            Reporter: Onno Scheffers
>            Assignee: Howard M. Lewis Ship
>            Priority: Minor
>
> We've had a discussion about the Javascript issue here: 
> https://issues.apache.org/jira/browse/TAPESTRY-2364
> Currently Tapestry puts Javascript on the bottom of the page. This will make the page look like it loads faster, because the browser can start rendering the page before the Javascript libraries are loaded.
> It is quite common however if you want your page to work without Javascript, that you render out full HTML and then use Javascript to hide parts on the client before the page renders. This way everything is visible to people that don't have Javascript enabled in their browser, but people with Javascript will get a better user-experience.
> Currently the result is messy because you see the page being rendered and once the Javascript libraries are all loaded, the sections are hidden. It is all visible to the user and you have to come up with all kinds of hacks to work around that issue. Therefore it would be greatly appreciated if it were possible to configure Tapestry so that users can choose to include the libraries in the head section again.
> Having the Javascript included in the head is the way most people are used to, so it would also make things easier for the average Tapestry user.

-- 
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