Remove unused JavaScript in responsive version

Posted in: Newspaper
Post count: 5

I performed the Google Pagespeed test and in the mobile version.

One result was:

Remove unused JavaScript to reduce bytes consumed by network activity.

/v0/amp-ad-network-adsense-impl-0.1.js(cdn.ampproject.org)
/v0.js(cdn.ampproject.org)
/v0/amp-analytics-0.1.js(cdn.ampproject.org)
/v0/amp-lightbox-gallery-0.1.js(cdn.ampproject.org)
/v0/amp-bind-0.1.js(cdn.ampproject.org)
/v0/amp-form-0.1.js(cdn.ampproject.org)
/v0/amp-mustache-0.2.js(cdn.ampproject.org)
/v0/amp-ad-0.1.js(cdn.ampproject.org)
/v0/amp-sidebar-0.1.js(cdn.ampproject.org)

However the tested page is Responsive and not AMP.

How can I do, so that these AMP scripts do not load in the responsive version.

Thanks.

Post count: 18283

Hello !

This comes from the AMP plugin not from Newspaper Theme. We recommend you not to remove such files since it may break your plugin.

Thank you !

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.