Skip to content

Stephen Marron

Talk To Me




  • Web Development
    • Search Engines
    • Browsers
    • Content Management
    • CSS
    • Ecommerce
    • jQuery
    • Programming
    • UI
    • XHTML
  • Technology
    • Software
  • Graphic Design
    • Logo Design
    • Photoshop
    • Web Design
  • Health
    • Fitness
  • Food & Drink
    • Beer
    • Baking
    • Cooking
  • Contact
JS Fiddle
  • Featured
  • jQuery
  • Programming

Efficient use of the each function

Posted on 11/01/2018 by Stephen Marron

This code is efficient from a performance standpoint because we are creating variables outside the loop and pass them into the loop. Also we are NOT checking the DOM for #divResult every time we loop through <li>.

 

DOM each Function Javascript jQuery







  • Web Development
  • Technology
  • Graphic Design
  • Health
  • Food & Drink
  • Contact
Powered by WordPress and Anderson.