• jQuery
  • jQuery UI
  • jQuery Mobile
  • Sizzle
  • QUnit
  • Plugins
  • Contribute
    • CLA
    • Style Guides
    • Bug Triage
    • Code
    • Documentation
    • Web Sites
  • Events
  • Support
    • Learning Center
    • Chat
    • Stack Overflow
    • Report a bug
  • OpenJS Foundation
    • Join
    • Members
    • jQuery Team
    • Governance
    • Conduct
    • Projects

jQuery Learning Center

  • Home
  • About
  • Contributing
  • Style Guide

Performance

  • Append Outside of Loops
  • Cache Length During Loops
  • Detach Elements to Work with Them
  • Don’t Act on Absent Elements
  • Optimize Selectors
  • Use Stylesheets for Changing CSS on Many Elements
  • Don’t Treat jQuery as a Black Box
Advanced Plugin Concepts
Append Outside of Loops

Last Updated

  • August 4, 2023

Suggestions, Problems, Feedback?

Open an Issue or Submit a Pull Request on GitHub

Chapters

  • About jQuery
  • Using jQuery Core
    • Frequently Asked Questions
  • Events
  • Effects
  • Ajax
  • Plugins
  • Performance
  • Code Organization
    • Deferreds
  • jQuery UI
    • Widget Factory
    • Using jQuery UI
  • jQuery Mobile

Books

  • Learning jQuery 4th Edition by Karl Swedberg and Jonathan Chaffer Learning jQuery Fourth Edition Karl Swedberg and Jonathan Chaffer
  • jQuery in Action by Bear Bibeault, Yehuda Katz, and Aurelio De Rosa jQuery in Action Bear Bibeault, Yehuda Katz, and Aurelio De Rosa
  • jQuery Succinctly by Cody Lindley jQuery Succinctly Cody Lindley
  • Learning Center
  • Chat
  • Twitter
  • GitHub

Copyright 2025 OpenJS Foundation and jQuery contributors. All rights reserved. See jQuery License for more information. The OpenJS Foundation has registered trademarks and uses trademarks. For a list of trademarks of the OpenJS Foundation, please see our Trademark Policy and Trademark List. Trademarks and logos not indicated on the list of OpenJS Foundation trademarks are trademarks™ or registered® trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them. OpenJS Foundation Terms of Use, Privacy, and Cookie Policies also apply.

Web hosting by Digital Ocean | CDN by Fastly | Powered by WordPress