-
AuthorPosts
-
estradatrabajo Friend
estradatrabajo
- Join date:
- February 2011
- Posts:
- 34
- Downloads:
- 0
- Uploads:
- 6
- Thanks:
- 16
- Thanked:
- 1 times in 1 posts
April 26, 2011 at 6:54 am #163227Hi, I’ve read that we can improve the speed of the web load by putting the JS files at the end of the loading (because, with the JS at the begin, the other files -images, etc.- don’t load until the JS files are fully loaded, as I can see with Gmetrix). My question is: how can I make JS files load at the end of the web load?
(Teline IV; Joomla 1.6; http://www.3dadictos.com)
gray Friendgray
- Join date:
- October 2009
- Posts:
- 957
- Downloads:
- 0
- Uploads:
- 17
- Thanks:
- 28
- Thanked:
- 292 times in 230 posts
April 26, 2011 at 8:31 am #388269JA T3 Framework plugin is compressing and minifying JS. Actually it should help essentially.
Not sure that loading JS at the end is a good approach, as user can try to perform an action (handled by JS) when that JS is not loaded yet.
I run into some sites which seems to be using this approach. What I have to do – refresh the page again (and I hadn’t realized the problem right from the beginning).
1 user says Thank You to gray for this useful post
estradatrabajo Friendestradatrabajo
- Join date:
- February 2011
- Posts:
- 34
- Downloads:
- 0
- Uploads:
- 6
- Thanks:
- 16
- Thanked:
- 1 times in 1 posts
April 26, 2011 at 8:42 am #388277Hi, gray, thanks for reply.
I understand your explanation, but I would like to try the other way, because the web is not slow (around 6 seconds to load), but I think maybe is better if the user can to see some images from the beginning of that 6 seconds, not just blank page (if I’m waiting a few seconds without see anything, I can be bored and go away). Yes, if the user want to make an action that needs JA T3 quickly, maybe he can’t do it within the first seconds, but I would like to try and see what works better. Do you know how I can to put the JS at the end of the load?gray Friendgray
- Join date:
- October 2009
- Posts:
- 957
- Downloads:
- 0
- Uploads:
- 17
- Thanks:
- 28
- Thanked:
- 292 times in 230 posts
April 26, 2011 at 9:11 am #388287No sure how to implement it (loading JS after page load) at once, but a common approach could be running scripts with onDOMReady events.
1 user says Thank You to gray for this useful post
estradatrabajo Friendestradatrabajo
- Join date:
- February 2011
- Posts:
- 34
- Downloads:
- 0
- Uploads:
- 6
- Thanks:
- 16
- Thanked:
- 1 times in 1 posts
April 26, 2011 at 10:36 am #388320Thanks again, gray. Rewriting scripts with onDOMReady events seems too much advanced for me (I’m a rookie with Joomla), so I will wait to another suggestions (maybe someone has tried it yet and could help me).
-
AuthorPosts
This topic contains 5 replies, has 2 voices, and was last updated by estradatrabajo 13 years, 8 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum