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"
https://i.imgur.com/WszTMiV.png
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>
<!-- Chrome, Firefox OS and Opera -->
<!-- Windows Phone -->
<!-- iOS Safari -->
<script async custom-element="amp-form" src="https://cdn.ampproject.org/v0/amp-form-0.1.js"></script>
<script async custom-element="amp-accordion" src="https://cdn.ampproject.org/v0/amp-accordion-0.1.js"></script>
<script async custom-element="amp-sidebar" src="https://cdn.ampproject.org/v0/amp-sidebar-0.1.js"></script>
<script async custom-element="amp-position-observer" src="https://cdn.ampproject.org/v0/amp-position-observer-0.1.js"></script>
<script async custom-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:
I don't understand why Google suggests that I'm using Duplicate versions of the JS file. However, you can see the code I'm not using amp-lightbox anywhere. Any suggestion is welcome. Thank you in Advance!
Top comments (0)