Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search Coderanch
Advance search
Google search
Register / Login
J.K. Sloan
Greenhorn
+ Follow
2
Posts
0
Threads
0
Cows
since Jul 12, 2011
Merit badge:
grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
Ranch Hand Scavenger Hunt
Number Posts (2/100)
Number Threads Started (0/100)
Number Cows Received (0/5)
Number Likes Received (0/10)
Number Likes Granted (0/20)
Set bumper stickers in profile (0/3)
Report a post to the moderators (0/1)
Edit a wiki page (0/1)
Create a post with an image (0/2)
Greenhorn Scavenger Hunt
First Post
Number Posts (2/10)
Number Threads Started (0/10)
Number Likes Received (0/3)
Number Likes Granted (0/3)
Set bumper stickers in profile (0/1)
Set signature in profile
Search for a post/thread (0/3)
Set a watch on a thread
Save thread as a bookmark
Create a post with an image (0/1)
Recent posts by J.K. Sloan
Sitemesh: make page load fast by putting JavaScript in the page bottom?
Found out how to do this.
1. In sitemesh.xml make sure you are using the HTML parser not the fast parser.
2. Do something like this
<!--Source Doc:--> <html> … </html> <content tag="myJavascript"> [scripts here] </content> <!--Template:--> <html> <head> … <decorator:usePage id="thePage" /> <% String myJavascript = thePage.getProperty("page.myJavascript"); %> … </head> <body> …. <% if(myJavascript != null){ %> <decorator:getProperty property="page.myJavascript"/> <% } %> </body> </html>
show more
12 years ago
Other Open Source Projects
Sitemesh: make page load fast by putting JavaScript in the page bottom?
I was just thinking about doing the same thing. I am not sure if its possible but I was thinking that using SiteMesh's content block feature could work for this. Have you had any success?
show more
12 years ago
Other Open Source Projects