Exactly How to Create a Custom jQuery Accordion
Accordions can be very useful for showing lots of different sections of data in a small amount of space. jQuery UI has a built in Accordion function , but according to the jQuery UI Build your Download , the size of the Core jQuery UI and Accordion scripts are 25kb and 16.6kb, respectively. Today, I’ll show you how to build a custom accordion that is more “bandwidth efficient”. That seems like a lot for just one simple accordion. Especially when you add in the normal jQuery script, which is 18kb minified and Gzipped. So instead of increasing your page load time with the extra unneeded functionality, why not create something from scratch? I also think that writing things from scratch really gives you a much better understand of how to use jQuery effectively, without always turning to use someone else’s code.
See the original post:
Exactly How to Create a Custom jQuery Accordion
Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my feed and get articles like this delivered automatically to your feed reader.




















Comments
No comments yet.
Leave a comment