TGViewer
Dev thinking loud Dev thinking loud @dev_thinking_loud · 1.61K subscribers
Post #321 2.09K
ESM modullar browserda "by default" (tarjimasini bilganlar yozvorishsin) kech yuklanadi (deferred).

Biz bilamizki, browserda script taglar kech yuklanishi uchun defer atribut berishimiz kerak. Bo'lmasa browser script tagni uchratishi bilan html processingni tohtatib scriptni yuklab(fetch) va ishlatish(execute)ni boshlaydi. Bu oz navbatida undan keyin kelgan html elementlarning DOMda topilmasligiga sabab boladi. Agar scriptimizda type=module bolsa defer avtomat tarzda yoqiladi.

manba: https://v8.dev/features/modules#defer

#did_you_know
v8.dev JavaScript modules · V8 This article explains how to use JavaScript modules, how to deploy them responsibly, and how the Chrome team is working to make modules even better in the future.
  • 👍 22
  • 🔥 6
More from @dev_thinking_loud
  1. Jun 14, 2026TDD, PP va AI Bir oralar Birlashgan Qirollikdan inglizlar bilan bir proyektda birga ishlad…
  2. May 4, 2026Assalamu alaykum! Bir muddat uzilishdan keyin video darslarni davom etish uchun imkon payd…
  3. Apr 22, 2026“Yangi O‘zbekiston” universitetida FinTech yo‘nalishidagi xakaton bo‘lib o‘tadi 25–26-apre…
  4. Feb 6, 2026Post #537
  5. Feb 5, 2026Claude Opus 4.6 va GPT 5.3 Codex Bugun yuqorida zikr etilgan ikki AI model release bo’ldi.…
  6. Dec 9, 2025System design concepts Interviewlarga tayyorlanayotgan middle va senior darajadagi dasturc…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →