mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-22 17:47:48 -06:00
Two reads forced a layout of the whole page. The sidebar measured the current link as the script ran (114 ms on gaps, mobile, 4x CPU throttling), and every table's width was read in an idle callback that still found the layout invalidated (103 ms), then again after enhance() wrote captions (131 ms). The sidebar now reads an IntersectionObserver entry and the tables a ResizeObserver, whose callbacks run once the page is laid out. The observer also covers a window resize and a block that opens.