Open raoabdullah07 opened 2 years ago
Closely related to #28638 where PSI suggests to remove unused JavaScript.
See https://github.com/ampproject/amphtml/issues/28638#issuecomment-772902291 from @kristoferbaxter:
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