We now guard the
ANSWERS.addComponent for the
Map component by first checking if the browser is on a mobile device. If it is, we don’t add the map, since it was being set to
display: none; on mobile. Previously, the map would still update in the background, even though it wasn’t visible. This improves the performance of the vertical-map page on mobile.
As part of our wider effort to improve page speed, we’ve added instrumentation calls to the SDK, to be able to better detect when certain events occur (such as the DOM being interactive).
To try these out, type
performance.getEntries() in the console. This will return a series of PerformanceNavigationTiming objects that correspond to various events occurring on the page.
Stay tuned for more page speed improvements to come!