murattunalı.
Reading

R

Redirect chain A redirect chain is when an address reaches its final address not in a single hop but by passing through more than one redirect; for example, if an old address is redirected first to an intermediate address and from there to the final address, there is a two-hop chain. Site migration

What is reflow?

A reflow is the browser recomputing the positions and sizes of elements on a page after a change.

When an element’s width, height, position or typeface changes, the browser has to recompute the layout — and the computation is usually not limited to that element but covers its neighbours and sometimes the whole document.

The cost shows in two places. Reflows during page load produce layout shift and spoil CLS; those during use occupy the main thread and spoil INP.

The most frequent triggers are well known, and most are avoidable.

  • An image without dimensions arriving — no space was reserved, so everything is pushed.
  • Font swapping — the text takes up a different amount of room.
  • Content added later — if it enters the existing flow, it pushes.
  • Animating with layout properties — a reflow on every frame.
  • Reading a layout value and immediately writing one — this forces the browser to compute at once.

The last item is the classic trap on the JavaScript side: reading one element’s size and immediately changing another’s forces the browser to recompute on every iteration. Grouping the reads and the writes removes that cost.

On the animation side the rule is a single sentence: use only transform and opacity. Neither affects layout; the element moves in its own layer and its neighbours stay put.

Browsers try to batch reflow work: several changes are accumulated and computed at once. But when a layout value is READ, that batching breaks — to give the correct answer the browser has to perform the pending computations immediately.

That is why the golden rule on the JavaScript side is to group reads and writes: all the reads first, then all the writes. A loop that mixes the order forces a recomputation at every step, and the cost is multiplied by the number of elements.

On the animation side the rule is simpler: use only transform and opacity. Neither affects layout, both are usually handled in the graphics card’s layer, and neither occupies the main thread.

Reflow and repaint are also confused, and their costs differ. An element whose colour alone changes is repainted but triggers no layout computation; an element whose position or size changes produces first a reflow and then a repaint. The second is markedly expensive, and its cost multiplies with how much of the page it affects.

If you want your own site measured and fixed at the source, our Core Web Vitals optimization starts from real-user data and delivers LCP, INP and CLS against a budget.

Performance

Relative luminance is the value expressing a colour’s perceived lightness between 0 and 1, and it is the basis of the contrast ratio calculation. Accessibility

S

Screen reader A screen reader is assistive technology that turns on-screen content into speech or braille output and lets the user navigate by keyboard. Accessibility

Search Console is a free service from Google for monitoring a site’s status in Google Search and for seeing and fixing its problems. Being found on Google

Semantic HTML means choosing each element for its meaning rather than its appearance — a heading element for a heading, a button element for a button, a list element for a list. Accessibility

Sitemap A sitemap is a file, usually written in XML, that lists the addresses of a site’s pages and, optionally, their last modification dates for search engines in a single file. Being found on Google

Social compliance audit A social compliance audit is the examination by an independent auditor of working conditions, occupational health and safety and business ethics at a production site against a code of conduct. Certified manufacturing

Soft 404 A soft 404 is a page that shows visitors “page not found” or empty content but returns a 200 (success) code from the server instead of an error code; Google treats these pages as error pages and does not index them. Site migration

Structured data is an additional layer that labels a page’s content with a standard vocabulary machines can understand. Answer engines

T

Text expansion is the same content being of different lengths in different languages, and the layout having to flex accordingly. Multilingual

TLS certificate lifetime is the period from the day the certificate that provides a site’s HTTPS connection is issued to the day its validity ends. Certified manufacturing

Total cost of ownership is the sum of all the costs of buying an asset or service and using it over its service life. Certified manufacturing

Transaction certificate A transaction certificate is the document, issued by a certification body under Textile Exchange standards, that shows a specific delivered consignment of goods is certified. Certified manufacturing

Translation memory A translation memory is a database that stores previously translated sentences and suggests them when the same or a similar sentence comes up again. Multilingual

TTFB (Time to First Byte) is the time between the browser sending a request and receiving the first byte from the server. Performance

U

URL inventory A URL inventory is a single list that gathers every address of a site that search engines know — current pages, address variants and old addresses; in a site redesign or migration, the redirect map is derived from this list. Site migration

W

WCAG (Web Content Accessibility Guidelines) is the international standard published by the W3C that defines the accessibility of web content through testable success criteria. Accessibility

X

x-default is a special hreflang value declaring the default page to show when no language version matches the user’s language. Multilingual

SOURCES