Тёмный
No video :(

What Is The Fastest Way To Load JavaScript 

Web Dev Simplified
Подписаться 1,6 млн
Просмотров 182 тыс.
50% 1

Опубликовано:

 

28 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 266   
@kurtobando
@kurtobando 4 года назад
No long intro, short presentation, straight examples, clear explaination. Thank you Kyle.
@jackofnotrades15
@jackofnotrades15 3 года назад
Simple, elegant, crisp. Thats how you teach. Thats how it needs to be done ideally.
@busyrand
@busyrand 2 года назад
This is becoming one of my favorite RU-vid channels period... This is perfect for beginner to intermediate developers.
@NYC_CuriousG
@NYC_CuriousG 5 лет назад
Wow you're a good teacher. I get it now. Subscribed!
@WebDevSimplified
@WebDevSimplified 5 лет назад
Thanks!
@davidpuckree5254
@davidpuckree5254 3 года назад
@@WebDevSimplified lol
@nekoill
@nekoill 4 года назад
I don't know how, but you manage to explain things like I'm five without being patronising. That's remarkable.
@Vikas_Singh_Kushwaha
@Vikas_Singh_Kushwaha 3 года назад
These small videos are really good. Because you can find full blown project tutorials on RU-vid but these conceptual things are not available that often
@darrenhale4028
@darrenhale4028 5 лет назад
Exam is in 6 hours and you are an absolute life saver! Subbed!
@WebDevSimplified
@WebDevSimplified 5 лет назад
I'm glad I could help. Good luck on the test.
@MartiQwx
@MartiQwx 2 года назад
The breaks he makes between each sentences make it so much easier for non-native speaker to understand.
@12thevil
@12thevil 2 года назад
Yo, you are really helping me get through school. I can't thank you enough.
@MrBoiks
@MrBoiks 2 года назад
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
@achtube85
@achtube85 3 года назад
3:41 This image is gold. So clear!
@gokujr4133
@gokujr4133 3 года назад
Bro what happened if we you javascript at the end of the code ? Instead of using defer and async.
@terry9873
@terry9873 2 года назад
You don't know this yet but your my new mentor. Arigato senpai!
@Zabsounds
@Zabsounds 4 года назад
Everything is crystal clear and well explained!! Thank you ! Please don`t stop making this videos!
@codedynamics1
@codedynamics1 Год назад
i swear you meant "significant" this is one of the best explainations i have found, very nice!
@ill-fatedstranger447
@ill-fatedstranger447 5 лет назад
That's what i'm searching for and learn a lot of things.
@WebDevSimplified
@WebDevSimplified 5 лет назад
Im glad the video could help.
@av03
@av03 4 года назад
I never know about this until i watch this, as always your content is very helpful. Thanks Kyle
@avimehenwal
@avimehenwal 4 года назад
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
@benjaminmoseslieb9856
@benjaminmoseslieb9856 Год назад
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 ;)
@thomasm1964
@thomasm1964 2 года назад
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!
@brandonchen3180
@brandonchen3180 2 года назад
This guy is a god of web dev
@shinichi9do
@shinichi9do 4 года назад
perfect video, 0 dislike. good content.
@longmarcin
@longmarcin 4 года назад
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 :-)
@brucoffee1437
@brucoffee1437 Год назад
If mdn docs ever wants to make video content I am suggesting this guy
@vibonacci
@vibonacci 4 года назад
Good video. But one topic was not discussed: you can use both async and defer on the same tag, like Google Maps is loaded.
@Novia5555
@Novia5555 Год назад
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.
@AlexTechie
@AlexTechie 5 лет назад
Thanks, I've been meaning to look into this.
@WebDevSimplified
@WebDevSimplified 5 лет назад
You are welcome!
@crespinnougbodohoue7324
@crespinnougbodohoue7324 2 года назад
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!!!!!
@Tomakemehealthy2
@Tomakemehealthy2 4 года назад
Why defer is not the standard for html loading?
@soniablanche5672
@soniablanche5672 4 года назад
you don't need to use defer anymore anyway. Use module js, they defer by default.
@yadneshkhode3091
@yadneshkhode3091 4 года назад
@@soniablanche5672 can you please elaborate I didn't understand what you meant by module js
@soniablanche5672
@soniablanche5672 4 года назад
@@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
@chemedev
@chemedev 4 года назад
@@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!
@bboydarknesz
@bboydarknesz 4 года назад
@@chemedev here from Web Dev explain JS Modules ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-cRHQNNcYf6s.html
@pastorfred2543
@pastorfred2543 5 лет назад
Thanks sir, I've learnt something new today..
@WebDevSimplified
@WebDevSimplified 5 лет назад
I'm glad I could help!
@kuoyulu6714
@kuoyulu6714 Год назад
Thanks for this short clear tips, really help beginner like me to learn more!
@johnconnor9787
@johnconnor9787 2 года назад
The video about Tree Shaking would be awesome
@minou00701
@minou00701 4 года назад
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 .
@VanReactions
@VanReactions 2 года назад
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
@gamersgame43
@gamersgame43 День назад
9:15 good tip for loading JS files!
@bsewall
@bsewall 9 месяцев назад
Amazingly clear and concise. Thanks for the great video!
@jaydenmoon1165
@jaydenmoon1165 2 года назад
Always love your content - clean and concise as always
@corethenics
@corethenics 5 лет назад
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.
@WebDevSimplified
@WebDevSimplified 5 лет назад
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.
@arcanelore168
@arcanelore168 5 месяцев назад
Thank you very much for your video. I didn't know this!
@AnilKumar-ro6dz
@AnilKumar-ro6dz 4 года назад
I like your simple way of explanation, keep doing more videos.... 👍
@martinhotmann7868
@martinhotmann7868 3 года назад
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!
@gopinathkrm58
@gopinathkrm58 5 лет назад
Very nice video please upload 3 or 4 videos per week if possible...my next suggested topic is JavaScript Constructor in depth.
@WebDevSimplified
@WebDevSimplified 5 лет назад
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?
@gopinathkrm58
@gopinathkrm58 5 лет назад
@@WebDevSimplified like difference between other methods and constructor function to create an object and some advanced concepts
@WebDevSimplified
@WebDevSimplified 5 лет назад
@@gopinathkrm58 That sounds like a good idea. I added it to my list of video ideas. Thanks!
@meaningmean
@meaningmean 4 года назад
Thanks, Sir, I've learned something new today.
@ramiahviknesh3014
@ramiahviknesh3014 3 года назад
Simple and was visually easy to grasp the concept !
@rizean2
@rizean2 2 года назад
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.
@heitormbonfim
@heitormbonfim Год назад
Bruh, I love your channel, thanks
@Antipyj
@Antipyj 4 года назад
All your videos are so clear ty
@elpislivenetwork
@elpislivenetwork 4 месяца назад
Very helpful, thank you so much. God bless!
@RobertWildling
@RobertWildling 5 лет назад
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!
@WebDevSimplified
@WebDevSimplified 5 лет назад
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.
@BrianKiddDevDesign
@BrianKiddDevDesign 2 года назад
@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.
@foxjonesofficial
@foxjonesofficial 3 года назад
Now I know why you always say “”
@Sd-ge2rk
@Sd-ge2rk 2 года назад
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.?
@PraveenClasses
@PraveenClasses 3 года назад
amazing explanation...and greate visualisation... very greate work. thank you... 100 likes from my side
@devanshnigam5172
@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).
@onee
@onee 3 года назад
It's funny how on StackOverflow they were hating on defer and praising async.
@anneu8314
@anneu8314 4 года назад
Thanks again.. I'm learning a lot from your videos.
@maldonadodani
@maldonadodani Год назад
thanks man, great explanation
@muvvaanudeepreddy1562
@muvvaanudeepreddy1562 2 года назад
thank u for ur crystal clear Explanation.
@bhargavaram4377
@bhargavaram4377 3 года назад
your explanation is really excellent
@miw879
@miw879 3 года назад
I wish I got to know your channel 3 years ago
@Ad1tyapardeshi
@Ad1tyapardeshi 3 года назад
Want more videos like this & Thanks 🙏
@andrew.schaeffer4032
@andrew.schaeffer4032 Год назад
wonderful video thanks - concise and great visuals
@madhubalajayakumaran9340
@madhubalajayakumaran9340 5 лет назад
Best examples... best comparison 👍👍
@WebDevSimplified
@WebDevSimplified 5 лет назад
Thank you
@vincentiusherie
@vincentiusherie 2 года назад
This is brilliant! I've been wanting to know how HTML and JS are parsed.
@usmanabid7950
@usmanabid7950 Год назад
Well Explained, Thanks Bud 👍👍
@fallonmerri9586
@fallonmerri9586 3 года назад
Thank you for the graph!!
@mosomara
@mosomara 3 года назад
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?
@user-dc7oj3el7o
@user-dc7oj3el7o 2 года назад
This was a very helpful video! Thanks
@beverlyHillsAgent
@beverlyHillsAgent 3 года назад
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.
@P4P1_
@P4P1_ 4 года назад
Thank you very much. Today I learned something
@huzaifayunus9243
@huzaifayunus9243 4 года назад
You are always special sir. You are unique
@bboydarknesz
@bboydarknesz 4 года назад
thanks, amazing, simple and very understanding
@mackynyxz
@mackynyxz 2 года назад
Nice explanation!
@davidfelipecastanocadavid5430
@davidfelipecastanocadavid5430 3 года назад
Great Explanation, thanks for the help !!
@denonbasf3117
@denonbasf3117 2 года назад
Amigo you're best.
@isholapinheiro
@isholapinheiro 3 года назад
Don't know why this isn't taught more commonly
@JOc17KER
@JOc17KER 2 года назад
3 hero in programing: 1. The Newboston 2. Traversy Media 3. Web Dev Simplified
@koushi_ku
@koushi_ku 4 года назад
thank's man... nice visualization got from the video
@nathanheath1328
@nathanheath1328 4 года назад
This is amazing, thank you for this tutorial !
@md.imanali9998
@md.imanali9998 Год назад
Absolutely amazing. Thank you
@aryantirkey1744
@aryantirkey1744 4 года назад
Always something new to learn thank u
@RodrigoMendoza7
@RodrigoMendoza7 5 лет назад
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)?
@WebDevSimplified
@WebDevSimplified 5 лет назад
That is correct. Defer waits until the entire page is loaded to run so the document should already be ready.
@RodrigoMendoza7
@RodrigoMendoza7 5 лет назад
@@WebDevSimplified Thanks for clarifying that out 😃👌
@ernestomotta5178
@ernestomotta5178 4 года назад
Thank you, you made it very clear
@Champagnerushi
@Champagnerushi 4 года назад
Really good explanation man!
@user-ny8zg3sr2j
@user-ny8zg3sr2j 4 года назад
thanks for the explanation on this subject
@shinej11
@shinej11 4 года назад
Beautiful explanation. Thank you :)
@tubi8992
@tubi8992 2 года назад
Thanks!
@WebDevSimplified
@WebDevSimplified 2 года назад
Thank you for the support!
@tubi8992
@tubi8992 2 года назад
@@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!
@heywhyayo
@heywhyayo Год назад
Incredible thank you
@aqil199
@aqil199 Год назад
nice and sweet presentation
@naveenkr5992
@naveenkr5992 4 года назад
So defer works like if I put js at the bottom of body am I right?
@aravind.a
@aravind.a 3 года назад
Wow amazing explanation...❤️🔥
@kamaleshpparmar
@kamaleshpparmar 9 месяцев назад
Thank you brother
@tilakmadichettitheappdeveloper
@tilakmadichettitheappdeveloper 4 года назад
this explains a lot mate !
@sohammondal578
@sohammondal578 4 года назад
That animation was so good.
@WebDevSimplified
@WebDevSimplified 4 года назад
Thanks!
@0the0ambient0
@0the0ambient0 4 года назад
Nice explanation. Thank you.
@mortezaahmadi5710
@mortezaahmadi5710 3 года назад
God bless you! You're AWESOM.
@thepalogaming1913
@thepalogaming1913 2 года назад
After the body tag is the chaddest one
@milankbudha
@milankbudha 3 года назад
thank u so much..you are best
@SR-er8vt
@SR-er8vt 3 года назад
Thanks Kyle
@Arthur-cx1cg
@Arthur-cx1cg 4 года назад
very good explanation! thanx!
@pauloffborba
@pauloffborba 4 года назад
Excellent explanation
@andriiauziak1178
@andriiauziak1178 4 года назад
That's a useful information I didn't know
@emonymph6911
@emonymph6911 2 года назад
Very cool video! What's faster speed? Option1 at bottom of [body] tag or defer? Every time you refreshed the large.js you got insanely different results. Like one time it took DEFER large.js 20ms on each line another time 126ms and it took [body[ bottom with standard method 60ms on all lines. but [header] large.js took 14ms only, which was literally the fastest...
Далее
Differences Between Var, Let, and Const
8:37
Просмотров 187 тыс.
I Took a LUNCHBAR OFF A Poster 🤯 #shorts
00:17
Просмотров 7 млн
New Dyna Skin is OP🥵🔥 | Brawl Stars
00:16
Просмотров 305 тыс.
Incredible scroll-based animations with CSS-only
32:23
Просмотров 419 тыс.
The Async Await Episode I Promised
12:04
Просмотров 1,1 млн
Only The Best Developers Understand How This Works
18:32
5 JavaScript Concepts You HAVE TO KNOW
9:38
Просмотров 1,4 млн
JavaScript Cookies vs Local Storage vs Session Storage
14:28
Learn Closures In 13 Minutes
13:22
Просмотров 65 тыс.
I've been using Redis wrong this whole time...
20:53
Просмотров 354 тыс.