View Single Post
04-09-2009, 10:07 PM
#4
Choco is offline Choco
Status: Member
Join date: Jul 2007
Location: USA
Expertise:
Software:
 
Posts: 240
iTrader: 2 / 100%
 

Choco is on a distinguished road

Send a message via MSN to Choco

  Old

Originally Posted by hijax View Post
Why on earth would anyone still be using Javascript for this kind of thing.

I type 4-5 lines of code in Jquery and I get the same results.

$(document).ready(function () {
$('.div').click(function () {
$('ul.div').slideToggle('slow');
});
});
Oh, great idea. Why not include the kilobytes and kilobytes of code that jQuery is for a simple code like that.

People still use pure, library-less javascript over jQuery due to load times. The load time you saved from those couple of lines of code is now eaten up by a giant library between your head tags.

Reply With Quote