Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Performance and...Performance and...Change the jQuery url and get improved performanceChange the jQuery url and get improved performance
Previous
 
Next
New Post
8/29/2011 8:35 AM
 
The default jQuery url (in Host settings) is somthing like


http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js


The problem with this is that the version of jQuery you will get is the *latest* release of version 1.  So what your site runs with, will change every time Google puts up a new release.  It also means that Google serves the script with NO cache control header so that the user's browser is forced to re-download the script on *every* page request.

If you change it to (say)

http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js

Then you will *always* get the version 1.6.2 - presumably the one you actually tested with - *AND* it will be served with cache control headers so that your user's browser never requests it again after the first time.

If you change it to

//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js

Then you will get the 'right' protocol for the page. Http or https - however the enclosing page was requested.  Your site will automatically request the https version for it's secure pages and the http version for the non-secure pages.  You user does NOT see the "Do you want to download non-secure bits as well?" dialog box.


Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
8/29/2011 10:42 AM
 
Very good, Richard, I confirm it works for me!
Franco
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Performance and...Performance and...Change the jQuery url and get improved performanceChange the jQuery url and get improved performance


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out