You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've checked the score of my AMP pages with Google PageSpeed Insight, and I've got the following red message "Remove duplicate modules in JavaScript bundles"
This is the initial piece of code of my AMP pages. I started with them several years ago. Not sure if I have to remove something now.
<!doctype html><html⚡lang="en"><head><metacharset="utf-8"><metaname="viewport" content="width=device-width,minimum-scale=1,initial-scale=1"><title>Full SEO Guide 2020 - On Site SEO - On Page SEO - Off Page SEO Tips</title><linkrel="canonical" href="#"><scriptasyncsrc="https://cdn.ampproject.org/v0.js"></script><linkrel="canonical" href="#"><linkrel="shortcut icon" type="image/x-icon" href="images/favicon.png"><metaname="forntEnd-Developer" content="Abdullah Yousaf"><metaproperty="og:type" content="website "><!-- Chrome, Firefox OS and Opera --><metaname="theme-color" content="#336699"/>
<!-- Windows Phone --><metaname="msapplication-navbutton-color" content="#336699"><!-- iOS Safari --><metaname="apple-mobile-web-app-status-bar-style" content="#336699"><metaname="description" content="SmSEO is specially developed for Social Media & Search Engine Optimization Guide. More than 200 SEO Ranking Factors are explained to guide you about On-Site SEO, On-Page SEO, Off-Page SEO, & how to rank a website in Google Search Engine." />
<!--amp- form--><scriptasynccustom-element="amp-form" src="https://cdn.ampproject.org/v0/amp-form-0.1.js"></script><!--accordian--><scriptasynccustom-element="amp-accordion" src="https://cdn.ampproject.org/v0/amp-accordion-0.1.js"></script><scriptasynccustom-element="amp-sidebar" src="https://cdn.ampproject.org/v0/amp-sidebar-0.1.js"></script><!--scroll to top--><scriptasynccustom-element="amp-position-observer" src="https://cdn.ampproject.org/v0/amp-position-observer-0.1.js"></script><scriptasynccustom-element="amp-animation" src="https://cdn.ampproject.org/v0/amp-animation-0.1.js"></script>
Checking the code of my AMP pages, I see that the 'amp-sidebar' is called just in the following pieces of code:
Efforts are ongoing to reduce the size of AMP's JavaScript payloads, including Bento, AMP Compiler, and Module/NoModule mode.
I think the issue of duplicate modules could only be solved by utilizing ES module imports rather than bundling the duplicate modules in each extension binary. With the removal of IE11 support and the implementation of module scripts, I believe this is now a possibility.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.
Description
I've checked the score of my AMP pages with Google PageSpeed Insight, and I've got the following red message "Remove duplicate modules in JavaScript bundles"
This is the initial piece of code of my AMP pages. I started with them several years ago. Not sure if I have to remove something now.
Checking the code of my AMP pages, I see that the 'amp-sidebar' is called just in the following pieces of code:
Reproduction Steps
https://stackoverflow.com/questions/69491974/google-amp-duplicate-js-module-in-html-google-amp-html-at-google-pagespeed-i
Relevant Logs
n/a
Browser(s) Affected
Chrome
OS(s) Affected
No response
Device(s) Affected
No response
AMP Version Affected
V0.1
The text was updated successfully, but these errors were encountered: