Open DanKim0213 opened 1 year ago
what is the difference between Server-sent Event and Web socket api?
"WebSocket is a technology that enables two-way realtime communication between client and server. In contrast, Socket.IO is a library that provides an abstraction layer on top of WebSockets, making it easier to create realtime applications." by link
The more stuff you can do asynchronously, the better advantage your app can take of multicore processors.
https://developer.mozilla.org/en-US/docs/Web/Performance/How_long_is_too_long https://developer.mozilla.org/en-US/docs/Learn/Performance/Measuring_performance https://developer.mozilla.org/en-US/docs/Web/Performance/Fundamentals https://developer.mozilla.org/en-US/docs/Web/Performance/Optimizing_startup_performance https://web.dev/learn/performance https://developer.mozilla.org/en-US/docs/Learn/Performance/Perceived_performance https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/decode
How long is too long (goal)
async
vs defer
attribute on <script></script
https://javascript.info/script-async-defer
the browser must wait for the script to download, execute the downloaded script, and only then can it process the rest of the page. That leads to two important issues:
In practice, defer is used for scripts that need the whole DOM and/or their relative execution order is important. And async is used for independent scripts, like counters or ads. And their relative execution order does not matter.
Capturing and bubbling allow us to implement one of the most powerful event handling patterns called event delegation.
Web
Whatever relates to Web!