linkedlist:

How JavaScript works

#52 · · JavaScript

In 2017, SessionStack started a thorough series of blog posts explaining how JavaScript works. And even though it has been a while since then, these posts are still worth a read.

  1. An overview of the engine, the runtime, and the call stack
  2. Inside the V8 engine + 5 tips on how to write optimized code
  3. Memory management + how to handle 4 common memory leaks
  4. Event loop and the rise of Async programming + 5 ways to better coding with async/await
  5. Deep dive into WebSockets and HTTP/2 with SSE + how to pick the right path
  6. A comparison with WebAssembly + why in certain cases it’s better to use it over JavaScript
  7. The building blocks of Web Workers + 5 cases when you should use them
  8. Service Workers, their lifecycle and use cases
  9. The mechanics of Web Push Notifications
  10. Tracking changes in the DOM using MutationObserver
  11. The rendering engine and tips to optimize its performance
  12. Inside the Networking Layer + How to Optimize Its Performance and Security
  13. Under the hood of CSS and JS animations + how to optimize their performance
  14. Parsing, Abstract Syntax Trees (ASTs) + 5 tips on how to minimize parse time
  15. The internals of classes and inheritance + transpiling in Babel and TypeScript
  16. Storage engines + how to choose the proper storage API
  17. The internals of Shadow DOM + how to build self-contained components
  18. WebRTC and the mechanics of peer to peer networking
  19. Under the hood of custom elements + Best practices on building reusable components

Post #19 was published in August 2018. Two and a half years later, SessionStack continued the series with new posts. Most of these are about general JavaScript topics and go a little less deep. If you are interested, you can find many of them by searching their blog for the term "How JavaScript works".