Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

CDN for jquery.js javascript lib

Asked Modified Viewed 1,548 times
N
NealWalters
N
Neal Walters
http://CMSTrainingVideos.com - PHP Fusion Training Videos
  • Junior Member, joined since
  • Contributed 47 posts on the community forums.
  • Started 22 threads in the forums
  • Started this discussions
asked
Junior Member

Any reason you don't use Content Delivery Network (CDN) for loading jquery?

I changed header.php:

Quote

if (function_exists("get_head_tags")) { echo get_head_tags(); }
echo "<script type='text/javascript' src='".INCLUDES."jscript.js'></script>\n";
//echo "<script type='text/javascript' src='".INCLUDES."jquery.js'></script>\n";
echo "<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js'></script>\n";


Google page speed identified the jquery.js file as a potential for gzip. Since I haven't learned the ins and outs of setting up gzip, the CDN seemed smarter.

Neal
Edited by NealWalters on 24-08-2010 05:59,
0 replies
There are no post found.

Labels

None yet

Statistics

  • Views 0 views
  • Posts 0 posts
  • Votes 0 votes
  • Topic users 1 member

1 participant

N
N
Neal Walters
http://CMSTrainingVideos.com - PHP Fusion Training Videos
  • Junior Member, joined since
  • Contributed 47 posts on the community forums.
  • Started 22 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet