evertsemeijn

Topic: Speed up Jobberbase by using Googles jQuery

Why should you do this?

Jon Hobbs-Smith wrote:

Google have been hosting several JavaScript libraries for a while now on Google Code and there are several advantages to loading it from them instead of from your server. It saves on bandwidth, it'll load very quickly from Google's CDN and most importantly it'll already be cached if the user has visited a site which delivers it from Google Code.

This makes a lot of sense. How many sites out there are serving up identical copies of jQuery that aren't getting cached? It's easy to do too... Read the full post

How to do this?
In _templates/header.tpl replace

Code:
<script src="{$BASE_URL}js/jquery.js" type="text/javascript"></script>

with

Code:
<script src="http://www.google.com/jsapi" type="text/javascript"></script>
<script type="text/javascript">
    google.load("jquery", "1.2.6");
</script>

or

Code:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js" type="text/javascript"></script>

and you're done!

Member of Jobberbase Development Team - Templates/Usability :: Looking for installation and/or custom design? :: Beautiful Wordpress themes

deplorableword

Re: Speed up Jobberbase by using Googles jQuery

Totally agree with this one, plus if the user has been to another site using google jQuery it'll already be cached and speed up the page request. A slim chance of a cached library is better than no chance at all.

evertsemeijn

Re: Speed up Jobberbase by using Googles jQuery

There is only one but. I haven't figured out how to make jobberbase work with the latest jQuery file. Not much time this week but hope tackle that problem during the weekend.

Member of Jobberbase Development Team - Templates/Usability :: Looking for installation and/or custom design? :: Beautiful Wordpress themes

evertsemeijn

Re: Speed up Jobberbase by using Googles jQuery

Fixed. Am using the Google jQuery (1.3.1) on ggz-vacatures.nl without problems at the moment. You just need to update some js files. For that read this post

Member of Jobberbase Development Team - Templates/Usability :: Looking for installation and/or custom design? :: Beautiful Wordpress themes

evertsemeijn

Re: Speed up Jobberbase by using Googles jQuery

Having some problems with the 'email friend' module and that is that I won't open. I'm using latest jQuery from Google and have updated all JS to latest version. Anyone that can and will help me?

Member of Jobberbase Development Team - Templates/Usability :: Looking for installation and/or custom design? :: Beautiful Wordpress themes