Originally Posted by hijax
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.