Every JavaScript Dev Should Know This (Defer Attribute)
Vložit
- čas přidán 19. 07. 2024
- In today's video we're going to take a look at the 'defer' attribute in HTML and JavaScript. This can be used to increase the quality of code on your website, and resolve some errors 🙂
This can be used to resolve the "cannot read properties of null" JavaScript error.
For your reference, check this out:
developer.mozilla.org/en-US/d...
🏫 My Udemy Courses - www.udemy.com/user/domenic-co...
🎨 Download my VS Code theme - marketplace.visualstudio.com/...
💜 Join my Discord Server - / discord
🐦 Find me on Twitter - / dcodeyt
💸 Support me on Patreon - / dcode
📰 Follow me on DEV Community - dev.to/dcodeyt
📹 Join this channel to get access to perks - / @dcode-software
If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!
#dcode #javascript
Worth to add: "the defer attribute has no effect on module scripts - they defer by default." (MDN)
Thank you for this quick and helpful video.
Congrats for 100k subs, Domenic!
thx for so good solution and not long explanation mate
Hi! Great video, how do you execute inline js placed on a script tag on the page at the bottom, that need the defer files on the header to be loaded first? how is the order of execution and how to make shure that the defer files are loaded before execution of the bottom scripts on the page? thanks.
Hey Dom, every time I got stuck something I search on CZcams and most of the you're the first who appears me and then when I click that video I really understand what I'm looking for you're great person, knowledgeable person at least for me, and you're not deserve this count of audience is very very little when it compares you other channels although you're more knowledgeable then them I recommend you to make a 3-8 hour course and then publish a free code camp or traversy media I see a lot of people doing that and there audience increases thanks bro for sharing these valuable content,
From a guy who use you're content almost every day 🙏🏽 ❤
Mohsin thank you brother! That's some really kind words I appreciate it. I'm happy my videos help you out!!
You're welcome bro 🙏🏽
your somali warya maa fintahay
@@Mohamed-bu1yt
Haa sxb setahay
You're the best at programming. I like you so much 😎
Thanks a million Dom.
OMG wow, never understood it till this point. Finally you made it clear
My js teacher told me this a year ago
Great thanks!
That one I was facing issues thanks bro.
Bro could you make a video about how to create a loading section before the data from an api is rendered and render error when there is a problem with the api using fetch api with async await in react.
Does it make sense to add defer if external script is added in body?
Perfect timing! Just had this issue when making my portfolio
Brilliant person
Thanks for the video. Is defer the same as "DOMContentLoaded"?
Thank you so much 💓
😎👍
Thank you so much.
Thanks Man
Great!
Thanks!
Sorry I missed your Super Thanks! I'm glad I could help you and thank you for your donation 😊
thanks for u job
All good 👍
Your name is DOM ?
Thanks. You're the JavaScript whisper!
Iam egyption and iam big fan
Awesome!!
Gonna use to forever now
3:15 for those who check comments.
Noice