jQuery 1.3 released
Moderator: General Moderators
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
jQuery 1.3 released
(#10850)
- jaoudestudios
- DevNet Resident
- Posts: 1483
- Joined: Wed Jun 18, 2008 8:32 am
- Location: Surrey
Re: jQuery 1.3 released
Cool, thanks for the heads up
Can we replace our older versions with the new one? Or will it break?
Can we replace our older versions with the new one? Or will it break?
- daedalus__
- DevNet Resident
- Posts: 1925
- Joined: Thu Feb 09, 2006 4:52 pm
Re: jQuery 1.3 released
happy news. im gonna check it out. thanks arborint
Re: jQuery 1.3 released
It's been in the works for a while now. A new selector engine that supposedly much faster and some other nice improvements. Kudos to the jQuery team for constantly pushing the envelope.
- daedalus__
- DevNet Resident
- Posts: 1925
- Joined: Thu Feb 09, 2006 4:52 pm
Re: jQuery 1.3 released
i took a look at the update page. apparantly they improved the spped of a lot of things as well as cross browser compatibility. some of the updates make my life much easier and im very happy
Re: jQuery 1.3 released
Been waiting for this forever - thanks for the heads up.
Edit: As a nice corollary, they've created http://api.jquery.com - a nice API browser for jQuery
Edit: As a nice corollary, they've created http://api.jquery.com - a nice API browser for jQuery
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Re: jQuery 1.3 released
Awesome, thanks for the heads up 
- volomike
- Forum Regular
- Posts: 633
- Joined: Wed Jan 16, 2008 9:04 am
- Location: Myrtle Beach, South Carolina, USA
Re: jQuery 1.3 released
I just converted over. Here's how I'm loading it in my HEADER.php in the HEAD section. If you have a more elegant way to do this and to account for the things I'm accounting for, be my guest on a suggestion. I switched from 1.2.6 to 1.3 and everything appears to be running smoothly. I also see it went from 55K to 53.7K. If you take out the text at the top of the file, it probably loads even faster. Oh, and in my case, the constant "U" below is my absolute path to the website. When you use handsome URLs with Apache RewriteRule, all the relative pathing gets screwed up, so I switched to absolute pathing. I have a bootstrap.php file that gets called from my .htaccess file as a php autoload, and in that file it sets the U constant for me. So, change it as you see fit.
BTW, Google *wants* you to use their jQuery library. They make it available to the public, as well as other Javascript libraries, and the publicly tell you this on their API website.
Again, my tests show me that it's running smoothly with the various jQuery and AJAX stuff I was doing during the 1.2.6 days.
BTW, Google *wants* you to use their jQuery library. They make it available to the public, as well as other Javascript libraries, and the publicly tell you this on their API website.
Again, my tests show me that it's running smoothly with the various jQuery and AJAX stuff I was doing during the 1.2.6 days.
Code: Select all
<?
$sServerName = $_SERVER['SERVER_NAME'];
if (!(
$sServerName == '127.0.0.1' ||
$sServerName == 'me'
)):
?>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script>
<? endif; ?>
<script type="text/javascript">
try {
if (!jQuery) {
// jQuery obviously hasn't been loaded... let's get on that shall we...
document.write('<scr' + 'ipt type="text/javascript" src="<?= U ?>js/jquery-1.3.min.js"></scr' + 'ipt>');
}
} catch(e) {
document.write('<scr' + 'ipt type="text/javascript" src="<?= U ?>js/jquery-1.3.min.js"></scr' + 'ipt>');
}
</script>- jaoudestudios
- DevNet Resident
- Posts: 1483
- Joined: Wed Jun 18, 2008 8:32 am
- Location: Surrey
Re: jQuery 1.3 released
Cool, thanks for the info volomike