The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 11 posts ] 
Author Message
PostPosted: Tue Mar 29, 2011 1:45 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Mar 29, 2011 1:24 am
Posts: 5
Which file do I need to edit to load mootools.js from google's server
https://ajax.googleapis.com/ajax/libs/m ... pressed.js
instead of local dir ???
This solution is nice for a better performance of a website
Thanks

_________________
maofree's website: http://www.maofree-developer.com
http://www.casavacanze-poderecappella.com


Top
 Profile  
 
PostPosted: Mon May 02, 2011 8:12 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Mar 21, 2011 12:43 am
Posts: 5
Search 'mootools.js' on /libraries/joomla/html/html/behavior.php

Use:
$doc =& JFactory::getDocument();
$doc->addScript( 'http://ajax.googleapis.com/ajax/libs/mootools/1.1.2/mootools-yui-compressed.js' );

Ing. Martín Palavecino
www.adcp.com.ar

_________________
Eng. Martín Palavecino
www.adcp.com.ar


Top
 Profile  
 
PostPosted: Mon May 02, 2011 9:05 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Mar 29, 2011 1:24 am
Posts: 5
Thanks adcp
but for the 1.6 it is not the right solution (but I'll do some modification in that file)
mootools.js is not present in that page and if in index.php of my template, I don't write JHTML::_('behavior.mootools'); into the header
mootools... is loaded the same

I'll wait for your answer

byeee

_________________
maofree's website: http://www.maofree-developer.com
http://www.casavacanze-poderecappella.com


Top
 Profile  
 
PostPosted: Fri Jul 08, 2011 5:51 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Jun 15, 2011 4:29 am
Posts: 14
Did you ever find where this is located? It's preventing my ssl from working, I need to use a https request so my SSL works....


Top
 Profile  
 
PostPosted: Mon Jun 18, 2012 12:40 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Aug 19, 2011 12:05 pm
Posts: 9
this may be useful http://extensions.joomla.org/extensions ... rking/6981

_________________
---
Clothier Jones - fine furniture handmade in England.


Top
 Profile  
 
PostPosted: Mon Jun 18, 2012 1:59 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Jun 15, 2012 2:45 pm
Posts: 16
Why do you want to include this from Google? I think this will make the site slower as it will have to look for a third party domain to get the js file. But it will definitely save some bandwidth.


Last edited by Paul007 on Mon Jun 18, 2012 2:00 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Mon Jun 18, 2012 2:00 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Mar 29, 2011 1:24 am
Posts: 5
Hi plantotphil
yes it's very useful to solve this problem
I'll study its code

thank you

bye bye

_________________
maofree's website: http://www.maofree-developer.com
http://www.casavacanze-poderecappella.com


Top
 Profile  
 
PostPosted: Mon Jun 18, 2012 2:25 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Apr 20, 2011 1:31 pm
Posts: 45
Paul007 wrote:
Why do you want to include this from Google? I think this will make the site slower as it will have to look for a third party domain to get the js file. But it will definitely save some bandwidth.


Loading external files can be done in parallel. So it is faster. The site needs to make a page call whether it is "local" or "off site"

All files "local" are called and downloaded one at a time, but if you are loading from site 1, 2, and 3 it can be done in parallel.

Hosting large files off site actually will speed up your site. But you want to balance this out as best as possable.

http://developer.yahoo.com/performance/rules.html
Quote:
Reducing the number of unique hostnames has the potential to reduce the amount of parallel downloading that takes place in the page. Avoiding DNS lookups cuts response times, but reducing parallel downloads may increase response times. My guideline is to split these components across at least two but no more than four hostnames. This results in a good compromise between reducing DNS lookups and allowing a high degree of parallel downloads.


Top
 Profile  
 
PostPosted: Mon Jun 25, 2012 2:08 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Jun 15, 2012 2:45 pm
Posts: 16
Nobody Famous wrote:
Paul007 wrote:
Why do you want to include this from Google? I think this will make the site slower as it will have to look for a third party domain to get the js file. But it will definitely save some bandwidth.


Loading external files can be done in parallel. So it is faster. The site needs to make a page call whether it is "local" or "off site"

All files "local" are called and downloaded one at a time, but if you are loading from site 1, 2, and 3 it can be done in parallel.

Hosting large files off site actually will speed up your site. But you want to balance this out as best as possable.

http://developer.yahoo.com/performance/rules.html
Quote:
Reducing the number of unique hostnames has the potential to reduce the amount of parallel downloading that takes place in the page. Avoiding DNS lookups cuts response times, but reducing parallel downloads may increase response times. My guideline is to split these components across at least two but no more than four hostnames. This results in a good compromise between reducing DNS lookups and allowing a high degree of parallel downloads.


Thanks for sharing. I have just learned something new. That is the best part of Internet, Free learning!

_________________
UI Developer and Specialist for Lottery results at http://www.lotto.net


Top
 Profile  
 
PostPosted: Tue Jun 26, 2012 7:34 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue May 22, 2012 1:04 pm
Posts: 18
Location: Toronto, ON
maofree wrote:
Which file do I need to edit to load mootools.js from google's server
https://ajax.googleapis.com/ajax/libs/m ... pressed.js
instead of local dir ???
This solution is nice for a better performance of a website
Thanks


Hi, how did it go with your changes? Did downloading the external file make a difference in the download speeds for your site?

You should write up a quick case study to let us know how it worked. :)

Thanks!


Top
 Profile  
 
PostPosted: Tue Jun 26, 2012 11:18 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Apr 20, 2011 1:31 pm
Posts: 45
a single change like that may be negligible to "see" but lots of them will make a big difference. I just found and started using https://www.pingdom.com/ they have a free service for a single website monitoring. I have had it up for 3 days now and have been able to actually "see" differences made by small changes.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 



Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group