Bake dates into articles
This commit is contained in:
@ -5,6 +5,8 @@ tags: javascript,browser
|
||||
authors: chalarangelo
|
||||
cover: blog_images/armchair.jpg
|
||||
excerpt: Increase your JavaScript code's performance when working with the DOM by leveraging this simple trick.
|
||||
firstSeen: 2020-11-20T09:18:55+02:00
|
||||
lastUpdated: 2021-06-12T19:30:41+03:00
|
||||
---
|
||||
|
||||
DOM operations, including accessing the DOM, are generally slow. This is usually not a problem until you have to perform many DOM operations and your JavaScript application's performance starts to suffer. A very quick trick to increase performance is to store DOM elements or their values in local variables if you plan to access them multiple times.
|
||||
|
||||
Reference in New Issue
Block a user