Web Dev Roadmap for Beginners (Free!): bit.ly/DaveGrayWebDevRoadmap
Do not use innerHTML. This video shows 2 HUGE reasons why you should avoid innerHTML and use alternatives instead. Learn Javascript Optimization Tips for creating dynamic content.
🚩 Subscribe ➜ bit.ly/3nGHmNn
🚀 This tutorial is part of an Advanced Javascript Concepts tutorial series playlist:
• Advanced Javascript Co...
DO NOT use innerHTML - 2 BIG Reasons Why | Javascript Optimization Tips
(00:00) Intro
(00:05) Welcome
(00:16) Setup
(01:13) Reason #1 to stop using innerHTML
(02:17) A better solution
(04:50) Reason #2 to stop using innerHTML
(06:37) If you must use innerHTML, do this first!
📺 Referenced Tutorials:
10 Time-Saving Javascript Functions: • 10 Javascript Function...
📚 References:
MDN innerHTML: developer.mozilla.org/en-US/d...
MDN createElement: developer.mozilla.org/en-US/d...
MDN createDocumentFragment: developer.mozilla.org/en-US/d...
✅ Follow Me:
Twitter: / yesdavidgray
LinkedIn: / davidagray
Blog: yesdavidgray.com
Reddit: / daveoneleven
Was this tutorial about why you should stop using innerHTML in Javascript helpful? If so, please share. Let me know your thoughts in the comments.
#innerHTML #javascript #optimization
30 июн 2024