Skip to content

Instantly share code, notes, and snippets.

View popuguytheparrot's full-sized avatar
🦜
Hyping Solid.js

popuguy popuguytheparrot

🦜
Hyping Solid.js
View GitHub Profile
@d00m4ace
d00m4ace / ai-voice-cloning.md
Last active January 28, 2024 19:32
AI Voice Cloning
@faressoft
faressoft / dom_performance_reflow_repaint.md
Last active September 11, 2024 15:18
DOM Performance (Reflow & Repaint) (Summary)

DOM Performance

Rendering

  • How the browser renders the document
    • Receives the data (bytes) from the server.
    • Parses and converts into tokens (<, TagName, Attribute, AttributeValue, >).
    • Turns tokens into nodes.
    • Turns nodes into the DOM tree.
  • Builds CSSOM tree from the css rules.
@zmts
zmts / tokens.md
Last active September 18, 2024 17:08
Про токены, JSON Web Tokens (JWT), аутентификацию и авторизацию. Token-Based Authentication

Про токены, JSON Web Tokens (JWT), аутентификацию и авторизацию. Token-Based Authentication

Last major update: 25.08.2020

  • Что такое авторизация/аутентификация
  • Где хранить токены
  • Как ставить куки ?
  • Процесс логина
  • Процесс рефреш токенов
  • Кража токенов/Механизм контроля токенов
@paulirish
paulirish / what-forces-layout.md
Last active September 19, 2024 22:56
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.

Element APIs

Getting box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent