Playwright: Browser Automation That Waits for the App, Not the Sleep()
How Microsoft's Playwright made end-to-end tests less flaky by driving Chromium, Firefox, and WebKit with auto-waiting and a single API.
Category
28 articles · 96 min of reading
How Microsoft's Playwright made end-to-end tests less flaky by driving Chromium, Firefox, and WebKit with auto-waiting and a single API.
RFC 8297: 103 with Link preloads while the origin still computes 200, CDN support, and why a slow TTFB still benefits from hinted CSS.
popover, popovertarget, and ::backdrop: native light-dismiss menus and tooltips, plus when a dialog is still the right element.
animation-timeline: scroll() and view(), ranges, and how to animate on scroll without a rAF loop that fights the compositor.
anchor-name, position-anchor, and fallbacks: tooltips and popovers that stay attached through scroll, plus the overflow cases JS used to own.
How the Speculation Rules API differs from rel=prefetch, when prerender is safe, and how to avoid double pageviews and stampedes on search-as-you-type.
Link rel=prefetch, Speculation Rules, and why prerendering URLs with tokens or personalization is a data leak as much as a performance win.
How @layer orders unlayered CSS, utilities, and third-party sheets, and a practical layer map for a design-system-plus-app codebase.
How to ban unsafe-inline without breaking React and Angular, when hashes beat nonces, and the report-only rollout that does not brick production.
Simple vs preflighted requests, why Access-Control-Allow-Origin cannot be * with credentials, and what CORS never was (a server-side access control system).
What real-user monitoring actually samples, why synthetics still catch the outage in a region with no traffic, and how to budget both without two sources of truth.
A practical walkthrough of measuring Interaction to Next Paint and the concrete techniques for cutting down long input handlers that cause it.
How srcset and sizes let the browser pick the right image resolution automatically, and how to layer AVIF and WebP on top with picture and source.
How :has(), :is(), and :where() let CSS express parent-based and grouped selectors that used to require JavaScript or repetitive rules.
A practical comparison of WebSockets, Server-Sent Events, and WebTransport to help pick the right real-time transport for a given use case.
A walkthrough of how browsers turn a style change into pixels on screen, and why some CSS properties are far cheaper to animate than others.
How Cache-Control directives and ETags interact with browser and CDN caches, and where each layer disagrees in ways that cause stale content bugs.
A defense-in-depth checklist for handling user-uploaded files safely, covering validation, storage, serving, and the mistakes that lead to real compromises.
A service worker with the wrong caching strategy is worse than no service worker at all. Here's how to pick the right one per resource type.
Web Components promise framework-agnostic UI, but the interop details — props vs attributes, events, and Shadow DOM styling — are where real integration breaks.
Smooth page and state transitions used to require a JavaScript animation library and careful DOM choreography. The View Transitions API does it natively.
Media queries respond to the viewport. Container queries respond to the component's own box — which is what most responsive design actually needed.
Alt attributes are the easy 10% of accessibility work. Focus management, semantic structure, and keyboard flow are where most sites actually fail.
LCP, INP, and CLS each fail for different reasons. A practical, metric-by-metric playbook for diagnosing and fixing each one.