Avoid serving legacy JavaScript to modern browsers

[ad_1]

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, or Inside HTML element insertion mode.

Third, the issue with Number.isInteger appears if Tracking is enabled in Settings and 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 enable Tracking.

Please fix these issues so that PageSpeed can calm down.

Thank you in advance.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer