Lightpanda delivers 140x faster DOM queries
Lightpanda, an open-source headless browser designed for AI agents and automation, introduced substantial performance optimizations in its latest nightly build. The release features sibling position caching for nth-* selectors that slashes query times from 56ms down to 0.4ms (~140x faster), a 33% speedup in class matching to near-Firefox performance levels, and an optimization preventing getBoundingClientRect from redundantly re-walking the DOM tree.
Heavyweight headless browsers like Chromium are facing serious pressure from purpose-built, machine-first engines, and Lightpanda's relentless micro-optimizations make high-throughput scraping and AI agent browsing dramatically cheaper. Caching sibling positions in nth-* queries yields a 140x latency reduction, eliminating a major bottleneck when querying complex tables and repeated layouts. Accelerating class matching by ~33% closes the performance gap with mature browser engines like Firefox, while halting DOM re-traversals on getBoundingClientRect saves substantial CPU cycles for agents relying on element bounding metrics for layout analysis.
DISCOVERED
1h ago
2026-09-11
PUBLISHED
1h ago
2026-09-11
RELEVANCE
AUTHOR
lightpanda_io