Any problem foreseen with using Google's js library to run the plugin? And, if no problems are foreseen, what file needs to be modified? (I haven't delved into the code of the plugin as of yet)
Thanks.
Google js Library
7 posts • Page 1 of 1
Re: Google js Library
I'm not sure. I'm not familiar with Google's js library and how it would implement or use the plugin. What exactly are you trying to accomplish? I might be able to help with more info, but this might also be out of my league.
- Kris Themstrup
- Posts: 518
- Joined: Fri Jan 16, 2009 1:46 pm
- Location: Seattle, WA
Re: Google js Library
I got the idea from this plugin: http://jasonpenney.net/wordpress-plugin ... libraries/
The plugin site says:
A number of the javascript libraries distributed with WordPress are also hosted on Google’s AJAX Libraries API. This plugin allows your WordPress site to use the content distribution network side of Google’s AJAX Library API, rather than serving these files from your WordPress install directly.
This provides numerous potential performance benefits:
* increases the chance that a user already has these files cached
* takes load off your server
* uses compressed versions of the libraries (where available)
* Google’s servers are set up to negotiate HTTP compression with the requesting browser
Supported Libraries and Components
* Dojo
* jQuery
* jQuery UI
* MooTools
* Prototype
* script.aculo.us
I'm working on doing everything I can to speed my site up short of moving to a VPS. Any help would be appreciated.
The plugin site says:
A number of the javascript libraries distributed with WordPress are also hosted on Google’s AJAX Libraries API. This plugin allows your WordPress site to use the content distribution network side of Google’s AJAX Library API, rather than serving these files from your WordPress install directly.
This provides numerous potential performance benefits:
* increases the chance that a user already has these files cached
* takes load off your server
* uses compressed versions of the libraries (where available)
* Google’s servers are set up to negotiate HTTP compression with the requesting browser
Supported Libraries and Components
* Dojo
* jQuery
* jQuery UI
* MooTools
* Prototype
* script.aculo.us
I'm working on doing everything I can to speed my site up short of moving to a VPS. Any help would be appreciated.
- dreamwhisper
- Posts: 12
- Joined: Sun Feb 15, 2009 9:38 pm
Re: Google js Library
Any luck with this on your end, dreamwhisper? I'm up against the same concern/wall regarding 'Featured Content Gallery' not taking advantage of Google Libraries. Jason Penney actually looked at the code of another plugin for me and helped me through fixing it...but he could spend his life trying to help others better their own plugins. Regardless, after his help the site I was working on loaded in 1/2 or better the previous time.
I see that you received an initial reply from Kris, wondering what you were trying to accomplish. That you laid out a strong, detailed reply and didn't get a reply kind of blows.
I'm having a PHP wiz come over in a few days to help resolve the issue on my own and will update this thread with anything I learn. The goal, of course, it to adjust the plugin's current code to take advantage of Google Libraries, then submit it to the developer(s) here for possible implementation.
I see that you received an initial reply from Kris, wondering what you were trying to accomplish. That you laid out a strong, detailed reply and didn't get a reply kind of blows.
I'm having a PHP wiz come over in a few days to help resolve the issue on my own and will update this thread with anything I learn. The goal, of course, it to adjust the plugin's current code to take advantage of Google Libraries, then submit it to the developer(s) here for possible implementation.
- touchnova
- Posts: 3
- Joined: Mon Apr 20, 2009 11:41 pm
Re: Google js Library
No, I never determined how to do this. It would be nice if it could be done, or have a checkbox to use it or not. What I did to speed my site up was to change a line in the plugin code so the insertion of the plugin code is only in my home page header:
/* Output $galleryscript as text for our web pages: */
if (is_home()) {
echo($galleryscript);
}
The main problem I see at the moment is that on initial load, the plugin loads very slowly. After initial load, it works great, but....
/* Output $galleryscript as text for our web pages: */
if (is_home()) {
echo($galleryscript);
}
The main problem I see at the moment is that on initial load, the plugin loads very slowly. After initial load, it works great, but....
- dreamwhisper
- Posts: 12
- Joined: Sun Feb 15, 2009 9:38 pm
Re: Google js Library
@dreamwhisper - I apologize for not getting back to you sooner. My PHP buddy hasn't made it over yet, so I just went ahead and hardcoded the direct urls to the scripts hosted by Google. If I can ever get him over here, I'll update accordingly. Thanks!
- touchnova
- Posts: 3
- Joined: Mon Apr 20, 2009 11:41 pm
7 posts • Page 1 of 1
Return to Development, Improvement, and Conflicts
Who is online
Users browsing this forum: No registered users and 0 guests









