|
|
I am always looking at ways to speed up our page loads. One easy way to get a bit more speed is to load the YUI library directly from Yahoo's servers. They do allow this and have a page dedicated to doing it here: http://developer.yahoo.com/yui/articles/hosting/
I am attaching a patch that is a simple modification to the ajaxlib.php file. It also relies on a CFG parameter to be set. The default is to load the files from the local filesystem. Only if the CFG variable is set will it load them from Yahoo.
One thing that I would like to change with this is that I had to hardcode the YUI version number. It would be great if that was an easier bit of information to pull dynamically. I thought about parsing the YUI README file to get the version, but felt like that was a bit sloppy.
|
|
Description
|
I am always looking at ways to speed up our page loads. One easy way to get a bit more speed is to load the YUI library directly from Yahoo's servers. They do allow this and have a page dedicated to doing it here: http://developer.yahoo.com/yui/articles/hosting/
I am attaching a patch that is a simple modification to the ajaxlib.php file. It also relies on a CFG parameter to be set. The default is to load the files from the local filesystem. Only if the CFG variable is set will it load them from Yahoo.
One thing that I would like to change with this is that I had to hardcode the YUI version number. It would be great if that was an easier bit of information to pull dynamically. I thought about parsing the YUI README file to get the version, but felt like that was a bit sloppy. |
Show » |
committed 5 files to 'Moodle CVS' - 24/Jul/08 09:37 PM
MDL-14731 Improved Bryce's patch and applied. YUI version number is kept in a simple version.php file, to be updated manually when updating the YUI libraries.
|
|
|
committed 7 files to 'Lang CVS' - 25/Jul/08 01:11 AM
MDL-14129 Translated new strings for blog and question.
MDL-14731 Translated new strings for admin YUI libraries setting.
MDL-14208 Translated new strings for quiz statistics.
MDL-10107 Translated new strings for role and messaging.
|
|
|
committed 1 file to 'Moodle CVS' - 25/Jul/08 05:45 AM
MDL-14731 we can not rely on internal connection by default
|
|
|
committed 1 file to 'Moodle CVS' - 25/Jul/08 05:32 PM
committed 3 files to 'Lang CVS' - 25/Jul/08 11:58 PM
MDL-14731 Updated a translated string for admin.
MDL-15758 Translated new strings for forum.
|
|
|
martignoni committed 1 file to 'Lang CVS' - 26/Jul/08 04:45 AM
martignoni committed 1 file to 'Lang CVS' - 26/Jul/08 04:49 AM
|