Frontend

  • Islands Architecture - encourages small, focused chunks of interactivity within server-rendered web pages

async vs defer Link to heading

  • Tweet
  • Both
    • Doesn’t block page loading and rendering.
  • async
    • Runs immediately after download.
    • No guaranteed execution order (might differ from the order in the HTML)
    • Beneficial for stand-alone scripts, not affecting initial DOM.
  • defer
    • Waits for HTML parsing to finish.
    • Maintains script order in the document (beneficial for scripts that rely on each other)
    • Beneficial for scripts that are not necessary until the page content has been loaded.

Frameworks Link to heading

  • Alpine.js - Your new, lightweight, JavaScript framework.
  • htmx - high power tools for HTML
  • htmz
  • hyperscript - An easy & approachable language for modern web front-ends

Math Notation Link to heading

Storages Link to heading

TypeCapacitySupported TypesLifetimeAccess
Cookies4KBStringsuntil expiration date or manually deleted by user or webappShared between tabs and windows and with the server
Session Storage5MBStringsuntil tab is closedNot shared between tabs or windows
Local Storage5MBStringsuntil manually deleted by the user or webappShared between tabs and windows
IndexedDB>50MBKeys (Strings) and Values (objects, arrays, binary, etc.)until manually deleted by the user or webappShared between tabs and windows

References: