No long intro, short presentation, straight examples, clear explaination. Thank you Kyle.
@jackofnotrades154 жыл бұрын
Simple, elegant, crisp. Thats how you teach. Thats how it needs to be done ideally.
@busyrand2 жыл бұрын
This is becoming one of my favorite KZbin channels period... This is perfect for beginner to intermediate developers.
@MartiQwx2 жыл бұрын
The breaks he makes between each sentences make it so much easier for non-native speaker to understand.
@nekoill4 жыл бұрын
I don't know how, but you manage to explain things like I'm five without being patronising. That's remarkable.
@Vikas_Singh_Kushwaha3 жыл бұрын
These small videos are really good. Because you can find full blown project tutorials on KZbin but these conceptual things are not available that often
@MrBoiks3 жыл бұрын
This video helped me make sure my loading animations rendered crisply on page load. Before, even with gsap, everything appeared choppy and glitchy. One simple keyword and it animated as planned. Your my hero! I was going to scrap the entire loading animation
@darrenhale40285 жыл бұрын
Exam is in 6 hours and you are an absolute life saver! Subbed!
@WebDevSimplified5 жыл бұрын
I'm glad I could help. Good luck on the test.
@NYC_CuriousG5 жыл бұрын
Wow you're a good teacher. I get it now. Subscribed!
@WebDevSimplified5 жыл бұрын
Thanks!
@davidpuckree52544 жыл бұрын
@@WebDevSimplified lol
@tubi89922 жыл бұрын
Thanks!
@WebDevSimplified2 жыл бұрын
Thank you for the support!
@tubi89922 жыл бұрын
@@WebDevSimplified you deserve it Kyle, your videos are well researched, straight to the point and very useful. Wanted to say that in the comment but was watching it in bed before I fell asleep 🙃 keep up the great work!
@12thevil2 жыл бұрын
Yo, you are really helping me get through school. I can't thank you enough.
@achtube853 жыл бұрын
3:41 This image is gold. So clear!
@gokujr41333 жыл бұрын
Bro what happened if we you javascript at the end of the code ? Instead of using defer and async.
@codedynamics1 Жыл бұрын
i swear you meant "significant" this is one of the best explainations i have found, very nice!
@terry98733 жыл бұрын
You don't know this yet but your my new mentor. Arigato senpai!
@Zabsounds5 жыл бұрын
Everything is crystal clear and well explained!! Thank you ! Please don`t stop making this videos!
@av035 жыл бұрын
I never know about this until i watch this, as always your content is very helpful. Thanks Kyle
@avimehenwal4 жыл бұрын
Amazing video ... So clear and crisp and with a DEMO ! Could not have asked for better XD Great job, keep it up. Big FAT link from my side
@thomasm19642 жыл бұрын
Kyle - you have an absolute gift for making clear, concise, straightforward explanations. Shall be binge-watching. Oh yes: and you have a clear, neutral voice as well. Cannot tell you how many times I have bailed due to affected, whiny voices!
@benjaminmoseslieb98562 жыл бұрын
Great teaching chops! It really comes through that you want to and have invested in becoming a great teacher. A much rarer skill than programming ;)
@crespinnougbodohoue73242 жыл бұрын
I have just discovered your channel and I am really impressed abt your simple, elegant and succint way to teach. Thanks a lot and Do not stop!!!!!
@ill-fatedstranger4476 жыл бұрын
That's what i'm searching for and learn a lot of things.
@WebDevSimplified6 жыл бұрын
Im glad the video could help.
@shinichi9do5 жыл бұрын
perfect video, 0 dislike. good content.
@brucoffee14372 жыл бұрын
If mdn docs ever wants to make video content I am suggesting this guy
@AlexTechie6 жыл бұрын
Thanks, I've been meaning to look into this.
@WebDevSimplified6 жыл бұрын
You are welcome!
@longmarcin4 жыл бұрын
Just one little detail. Async and defer are not tags! They're attributes of a script tag. Great video anyway. Keep up the good work :-)
@jaydenmoon11653 жыл бұрын
Always love your content - clean and concise as always
@kuoyulu6714 Жыл бұрын
Thanks for this short clear tips, really help beginner like me to learn more!
@bsewall Жыл бұрын
Amazingly clear and concise. Thanks for the great video!
@brandonchen31802 жыл бұрын
This guy is a god of web dev
@VanReactions2 жыл бұрын
The best video explanation for async and defer, this is very useful for seo, it will be great if you have a video speed optimization for SEO
@Tomakemehealthy25 жыл бұрын
Why defer is not the standard for html loading?
@soniablanche56724 жыл бұрын
you don't need to use defer anymore anyway. Use module js, they defer by default.
@yadneshkhode30914 жыл бұрын
@@soniablanche5672 can you please elaborate I didn't understand what you meant by module js
@soniablanche56724 жыл бұрын
@@yadneshkhode3091 modules let you use "import {something} from "./some/javascript/file.js" in javascript, it's very useful because now dependencies can be declared inside javascript files instead of html files, they are also self contained code and don't pollute the global environment so you don't need to use an IIFE to isolate your code. In the html code you import a module like this : . They defer by default so you don't need to add "defer" to the script tag
@chemedev4 жыл бұрын
@@soniablanche5672 Wou never heard of it in this time! But I'm web developing for 7 months now so it's no surprise haha. I'll be learning about that, thanks for that piece of knowledge!
@bboydarknesz4 жыл бұрын
@@chemedev here from Web Dev explain JS Modules kzbin.info/www/bejne/mYOrgoGEmL6ZbNU
@ramiahviknesh30143 жыл бұрын
Simple and was visually easy to grasp the concept !
@vibonacci5 жыл бұрын
Good video. But one topic was not discussed: you can use both async and defer on the same tag, like Google Maps is loaded.
@Novia55552 жыл бұрын
Can I get some videos or references according to that? I'm a bit curious and after trying to look for it, I didn't find something like you said.
@minou007014 жыл бұрын
your content is so clearly ordered and straight to the point .. so the viewer knows the roadmap and then everything is concretized with different examples that are small easy to follow and to the point as well .. one of the best teachers bro .. hats off and big thanx .
@heitormbonfim2 жыл бұрын
Bruh, I love your channel, thanks
@rizean22 жыл бұрын
Backend dev who has to do some front-end from time to time. I wrote a function called setPolling to make sure some elements existed before running. Embarrassing to say I didn't know about putting the scripts at the bottom of the page. I need to go add the defer tag and remove the setPolling code on production pages serving 10s of thousand users per day. I use to make fun of front-end devs but after doing it a while I can say in many ways it harder that what most backend devs have to deal with.
@pastorfred25435 жыл бұрын
Thanks sir, I've learnt something new today..
@WebDevSimplified5 жыл бұрын
I'm glad I could help!
@gopinathkrm586 жыл бұрын
Very nice video please upload 3 or 4 videos per week if possible...my next suggested topic is JavaScript Constructor in depth.
@WebDevSimplified6 жыл бұрын
I'm glad you enjoyed the video. I would produce more videos each week, but it is tough enough for me to manage a full time job and two videos a week. I am always trying to improve my workflow, though, to create videos faster and hopefully more often. As for your suggestion on the JavaScript constructor, what exactly would you like me to cover about it?
@gopinathkrm586 жыл бұрын
@@WebDevSimplified like difference between other methods and constructor function to create an object and some advanced concepts
@WebDevSimplified6 жыл бұрын
@@gopinathkrm58 That sounds like a good idea. I added it to my list of video ideas. Thanks!
@Antipyj5 жыл бұрын
All your videos are so clear ty
@meaningmean5 жыл бұрын
Thanks, Sir, I've learned something new today.
@AnilKumar-ro6dz5 жыл бұрын
I like your simple way of explanation, keep doing more videos.... 👍
@PraveenClasses3 жыл бұрын
amazing explanation...and greate visualisation... very greate work. thank you... 100 likes from my side
@arcanelore16810 ай бұрын
Thank you very much for your video. I didn't know this!
@andrew.schaeffer4032 Жыл бұрын
wonderful video thanks - concise and great visuals
@johnconnor97873 жыл бұрын
The video about Tree Shaking would be awesome
@anneu83145 жыл бұрын
Thanks again.. I'm learning a lot from your videos.
@martinhotmann78683 жыл бұрын
I am missing some notices about inlineJS. As inlineJS often makes sense if you have less then 1kb. But defer does not work on script-tags in general but just on them if they have a "src" attribute. So if you want to defer inlineJS you can execute it on the event of "DOMcontentLoaded" or put it before the end of the closing body-tag. Its a pitty "defer" does not work on inlineJS. Thank you for your tutorial!
@madhubalajayakumaran93405 жыл бұрын
Best examples... best comparison 👍👍
@WebDevSimplified5 жыл бұрын
Thank you
@송예은-h7b2 жыл бұрын
This was a very helpful video! Thanks
@usmanabid79502 жыл бұрын
Well Explained, Thanks Bud 👍👍
@davidfelipecastanocadavid54303 жыл бұрын
Great Explanation, thanks for the help !!
@Ad1tyapardeshi4 жыл бұрын
Want more videos like this & Thanks 🙏
@Champagnerushi4 жыл бұрын
Really good explanation man!
@muvvaanudeepreddy15623 жыл бұрын
thank u for ur crystal clear Explanation.
@bhargavaram43774 жыл бұрын
your explanation is really excellent
@mosomara3 жыл бұрын
HI ... thanks for this great video ... i am wondering what is in the "i.js" script ... how do you time the Start and End of HTML parse?
@RodrigoMendoza75 жыл бұрын
Is it correct to assume that by putting our js file in the head and using defer, we can then omit the event "DOMContentLoaded" or document.ready from jQuery (as we've been doing so far)?
@WebDevSimplified5 жыл бұрын
That is correct. Defer waits until the entire page is loaded to run so the document should already be ready.
@RodrigoMendoza75 жыл бұрын
@@WebDevSimplified Thanks for clarifying that out 😃👌
@venkyman49853 жыл бұрын
I kno this irrelavant, but there is there a double quote missing at 1:30 in the script tag?
@nathanheath13284 жыл бұрын
This is amazing, thank you for this tutorial !
@gamersgame434 ай бұрын
9:15 good tip for loading JS files!
@baabansu92434 жыл бұрын
You are always special sir. You are unique
@corethenics5 жыл бұрын
Good explanation but need to provide the sample code to the viewers so that they can play with it for better understanding. You can upload the same on gitHub and add the link in description.
@WebDevSimplified5 жыл бұрын
Sorry. This is one of my older videos. In my newer videos I have links to both a github and codepen for all applicable videos. I don't generally add code for a video like this though since it is mostly about explanation and the actual code does not have an endpoint or use.
@ritu_raj_s3 жыл бұрын
Best explanation 👌👌👌
@koushi_ku4 жыл бұрын
thank's man... nice visualization got from the video
@aravind.a4 жыл бұрын
Wow amazing explanation...❤️🔥
@RobertWildling5 жыл бұрын
Which script did you use to show the various loading times and steps in the console? Can it be downloaded anywhere? Thank you so much for your great informative no-BS videos!
@WebDevSimplified5 жыл бұрын
I do not have the script available for download. If I remember correctly I just used a very large script tag to simulate the loading and added a little bit of JS to print to the console when loaded.
@BrianKiddDevDesign3 жыл бұрын
@RobertWildling You can use console.time() and console.timeEnd() to figure out when certain parts of the program load. For instance, in my JavaScript file, I placed console.time("JavaScript Loaded") at the beginning of the JS file and console.timeEnd("JavaScript Loaded"); at the end of my JS file. The result will show in the console as something like: JavaScript Loaded: 0.130859375 ms You can do the same for your HTML file by placing both console.time("html start); console.timeEnd("html start"); at the START of your HTML file and console.time("html end"); console.timeEnd("html end"); at the END of your HTML file. The total end result if you used defer could be: html start: 0.003173828125 ms html end: 0.001953125 ms JavaScript Loaded: 0.130859375 ms When I did not use async or defer AND the link to my js file was before the HTML (not at the end of the body section), the result was: html start: 0.0029296875 ms JavaScript Loaded: 0.05078125 ms html end: 0.001953125 ms I am unsure if this is how the presenter did it but it seems to work. I think the presenter had a separate JS file in which he targeted different parts of the DOM like the html and script tags and then just ran a console.time() and console.timeEnd() to determine the different load times of those targets. I hope this helps.
@maldonadodani Жыл бұрын
thanks man, great explanation
@aryantirkey17444 жыл бұрын
Always something new to learn thank u
@Sd-ge2rk3 жыл бұрын
That's really useful! Many thanks for the video. Could you share more about the javascript that you have on the right showing when the html starts and ends etc.?
@AleksandarIvanov694 жыл бұрын
Damn, thankfully you mellowed out the crazy eyes in 2020 :D
@fallonmerri95863 жыл бұрын
Thank you for the graph!!
@tilakmadichettitheappdeveloper4 жыл бұрын
this explains a lot mate !
@bboydarknesz4 жыл бұрын
thanks, amazing, simple and very understanding
@devanshnigam5172 Жыл бұрын
Brilliant video and amazing content. Just one doubt, how to clock and record the time of execution of a statement in the document (HTML) or script (JS).
@md.imanali99982 жыл бұрын
Absolutely amazing. Thank you
@shinej114 жыл бұрын
Beautiful explanation. Thank you :)
@mackynyxz3 жыл бұрын
Nice explanation!
@P4P1_4 жыл бұрын
Thank you very much. Today I learned something
@onee3 жыл бұрын
It's funny how on StackOverflow they were hating on defer and praising async.
@elpislivenetwork9 ай бұрын
Very helpful, thank you so much. God bless!
@josephmarlon268423 күн бұрын
clear explanation of terms
@MontyKsycki5 жыл бұрын
Thank You!!! Did not know that. Thanks for sharing!! :)
@denonbasf31173 жыл бұрын
Amigo you're best.
@beverlyHillsAgent3 жыл бұрын
So with "async" can be executed at anytime after the script is downloaded. There is no guarantee when it will be executed. It can be before the HTML is done parsing or after the HTML is done parsing. However, with "defer" is always executed after the HTML is done parsing. Correct me if I am wrong.
@vincentiusherie3 жыл бұрын
This is brilliant! I've been wanting to know how HTML and JS are parsed.
@noahkim64633 жыл бұрын
So helpful. Thank you :)
@ernestomotta51784 жыл бұрын
Thank you, you made it very clear
@Tony.Nguyen13710 ай бұрын
So if the deferred Js is executed after the html is parsed, does it mean that it comes before the rendering process???
@yahayaoyinkansola82584 ай бұрын
Yes, before the DOM is rendered, the script is executed, but the only difference here is that the HTML structure is already in place, so after the script executes, it doesn't take time for the content of the DOM to show in the browser
@andriiauziak11785 жыл бұрын
That's a useful information I didn't know
@sohammondal5785 жыл бұрын
That animation was so good.
@WebDevSimplified5 жыл бұрын
Thanks!
@miw8793 жыл бұрын
I wish I got to know your channel 3 years ago
@rennygalindez4 жыл бұрын
Excelente vídeo, gracias!
@Arthur-cx1cg4 жыл бұрын
very good explanation! thanx!
@0the0ambient04 жыл бұрын
Nice explanation. Thank you.
@JOc17KER3 жыл бұрын
3 hero in programing: 1. The Newboston 2. Traversy Media 3. Web Dev Simplified
@pauloffborba4 жыл бұрын
Excellent explanation
@عبدالله0-ج3ط4 жыл бұрын
thanks for the explanation on this subject
@BruceElgort4 жыл бұрын
Great video! Thank you.
@henrychoi33274 жыл бұрын
3:30 an informative chart
@naveenkr59924 жыл бұрын
So defer works like if I put js at the bottom of body am I right?