ampproject / ampproject/amphtml

Remove duplicate modules in JavaScript bundles

Open
#36,291 2 comments 0 reactions 0 assignees View on GitHub
Stale Type: Bug
Dominant language
JavaScript
Stars
14.9k
Forks
4.1k
PR merge metrics
No merged PRs in 30d

Description

### 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"

> ![PSI results](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.

```html




Full SEO Guide 2020 - On Site SEO - On Page SEO - Off Page SEO Tips















```

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

Contributor guide

Open the contributing guide

Research direction

Review the supplied AMP HTML and the linked Stack Overflow reproduction first. Determine whether the duplicate canonical elements or AMP component declarations are responsible for the PageSpeed warning, and check whether the report identifies an AMPHTML change rather than a page-authoring issue. The issue is complete only with a reproducible fix or a documented explanation that no amphtml change is needed.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
18/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.