Website performance

Choose web worker performance boundaries

Move suitable CPU-heavy work off the main thread while keeping data transfer and error handling explicit. Workers add serialization and coordination cost and do not fix network delay. Performance work should use field data where available and repeatable lab tests otherwise; avoid universal thresholds beyond published guidance or improvements inferred from one device.

User-perceived speed and delivery constraints

Workers add serialization and coordination cost and do not fix network delay.

  • Measure a representative page and identify the limiting resource
  • Change one delivery or rendering constraint at a time
  • Compare field and lab evidence without hiding regressions

Implementation approach

Profile work first, define message contracts and provide a fallback.

  • Confirm the responsible owner
  • Apply the change to a representative case
  • Document decisions and exceptions

Practical example

A client-side export runs in a worker while progress remains accessible.

  • Reproduce the starting situation
  • Apply the described approach
  • Check the user-facing result

Verification and follow-up

Test cancellation, memory use and older browser behavior.

  • Test expected and failure cases
  • Compare with the recorded baseline
  • Agree the next review date and owner

Questions to keep in view

When should a team use this website performance guide?

Move suitable CPU-heavy work off the main thread while keeping data transfer and error handling explicit.

What should be checked before rollout?

Test cancellation, memory use and older browser behavior.