TGViewer
Channel Public Channel
Web Development

Web Development

@web_dev_bds

Web development learning path

Frontend and backend resources.

HTML, CSS, JavaScript, React, APIs and project ideas.

Join 👉 https://rebrand.ly/bigdatachannels

DMCA: @disclosure_bds
Contact: @mldatascientist
Subscribers
4.43K
Photos
549
Videos
33
Links
115

Showing posts older than #582 · Back to latest

Older Posts 14 shown
Post #581 696
  • 👍 3
Post #579 716
JavaScript Event Loop: The Truth About setTimeout(0)

The Real Order of Operations:

1. Call Stack: Synchronous code (A, D) - This is where JavaScript executes code sequentially, like reading a script.

2. Microtasks: Promises (C) - These are small tasks that need to be executed ASAP after the current script, before the next rendering. Think of them as urgent side tasks.

3. Macrotasks: Timeouts/Intervals (B) - These are longer tasks that the browser queues up to do whenever it gets a chance. They're not as urgent as microtasks.

Golden Rule: "0ms" doesn't mean immediate - it means "next event loop tick".
  • ❤ 6
Post #571 568
  • ❤ 2
  • 👏 1
Post #570 586
localStorage Persistence: The Silent Bank Vault

What’s happening?

localStorage is like a browser’s hard drive. It survives tab/window closures, even system reboots.

Unlike sessionStorage (which dies with the tab), localStorage sticks until explicitly cleared (localStorage.clear() or user clears browsing data).

Gotcha: It’s synchronous meaning it blocks the main thread if you store large data.
  • ❤ 2
  • 👍 1
Post #569 529
Components of Docker
  • 👍 2
  • ❤ 1
Post #567 563
REST API Cheatsheet
  • ❤ 3
Post #566 590
Cookies Vs Sessions
  • ❤ 3
  • 👍 1
Post #565 641
HTTP Status Codes
  • ❤ 3
  • 👍 1
Post #564 655
Var Vs let Vs const
  • ❤ 3
Post #563 664
CORS request path
  • ❤ 2
  • 👍 2
  • 🥰 1
Post #562 686
PHP CHEATSHEET
  • ❤ 2
  • 👏 2
Post #561 701
CSS Cheat Sheet
  • ❤ 6
Older posts →
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 →