Coderwall
Ruby Python JavaScript Front-End Tools iOS
More Tips
Ruby Python JavaScript Front-End Tools iOS PHP Android .NET Java Jobs
Jobs
Sign In or Up
Last Updated: February 25, 2016
·
2.73K
· lrsjng

jQuery performance: $(template) vs .clone()

#jquery
#template

.clone() seems to outperform $(template) for large templates..

http://stackoverflow.com/questions/12989392/jquery-template-vs-clone

#jquery
#template

Written by Lars Jung

Say Thanks
Respond

Related protips

JavaScript iterate through object keys and values

592.5K
9

jQuery .find and .closest are your best friends

493.6K
2

jQuery: When to use $(document).ready() and when $(window).load()

226.4K
4

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Best #Jquery Authors
steveniseki
597.8K
#jquery
#javascript
#css
becomingGuru
493.6K
#jquery
#Python
#JavaScript
dizpers
234.9K
#jquery
#requireJS
#css3
david morrow
152.8K
#jquery
#Javascript
#PHP
prudnikov
137K
#jquery
#Python
#Django
Related Tags
#jquery
#template
Sponsored by
#native_company#
#native_desc#
#native_cta#
Filed Under

Javascript Tips to Beat the DOM Into Submission
Awesome Job
See All Jobs

Post a job for only $299
Thanks to our sponsor
Sponsored by #native_company# — Learn More
#native_title# #native_desc#
#native_cta#
@coderwall
APM product comparisons Contact Privacy Terms

Copyright 2025

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.