Avoid serving legacy JavaScript to modern browsers
-
Hi,
PageSpeed gives an issue with Avoid serving legacy JavaScript to modern browsers. Specifically with Array.prototype.includes and Number.isInteger.
The issue is exactly related to Ad Inserter. I did an extensive investigation of the issue, which took a lot of time to localize.
First, if I completely reset the Ad Inserter settings, the issue goes away.
Second, the issue with Array.prototype.includes appears if I use the
After HTML element,Before HTML element, orInside HTML elementinsertion mode.Third, the issue with Number.isInteger appears if
Trackingis enabled inSettingsand then activated for a particular block with some content.Fourth, the following should be done for the final check. It is necessary to reset completely Ad Inserter settings and turn on two blocks, for example 1 and 2, in which to enter any plain text. In block 1 you need to specify the insertion mode
After HTML element, for block 2 you need to enableTracking.Please fix these issues so that PageSpeed can calm down.
Thank you in advance.
The topic ‘Avoid serving legacy JavaScript to modern browsers’ is closed to new replies.