til
TIL: Nov 7
tilengineering
TIL: When using MediaQueryList for feature detection in older Safari/WebKit browsers, you must implement a fallback from addEventListener to the legacy addListener method to prevent runtime errors; additionally, when managing UI-blocking DOM attributes (like data-has-bottom-pricing-bar) across multiple overlapping route transitions, a reference-counting mechanism is essential to ensure the attribute is only removed once the last instance unmounts.