Skip to content

Fix broken reference in .mjs vs .js section of Modules guide#43664

Merged
chrisdavidmills merged 1 commit intomdn:mainfrom
tmchow:fix/43662-mjs-vs-js-reference
Apr 4, 2026
Merged

Fix broken reference in .mjs vs .js section of Modules guide#43664
chrisdavidmills merged 1 commit intomdn:mainfrom
tmchow:fix/43662-mjs-vs-js-reference

Conversation

@tmchow
Copy link
Copy Markdown
Contributor

@tmchow tmchow commented Apr 4, 2026

Summary

In the JavaScript Modules guide, the ".mjs versus .js" aside says "as you'll see below" when referring to <script type="module"> usage, but doesn't link to the relevant section. The referenced content is far down the page in "Applying the module to your HTML," which makes the vague reference confusing.

This replaces the loose "as you'll see below" text with a direct anchor link to the correct section.

Fixes #43662

@tmchow tmchow requested a review from a team as a code owner April 4, 2026 13:26
@tmchow tmchow requested review from sideshowbarker and removed request for a team April 4, 2026 13:26
@github-actions github-actions bot added Content:JS JavaScript docs size/xs [PR only] 0-5 LoC changed labels Apr 4, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 4, 2026

Preview URLs (1 page)

Copy link
Copy Markdown
Contributor

@chrisdavidmills chrisdavidmills left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM; thanks, @tmchow!

@chrisdavidmills chrisdavidmills merged commit 134c1fb into mdn:main Apr 4, 2026
8 checks passed
@tmchow
Copy link
Copy Markdown
Contributor Author

tmchow commented Apr 4, 2026

Thanks for the quick review and merge, @chrisdavidmills.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:JS JavaScript docs size/xs [PR only] 0-5 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wrong reference in jsm vs js file extension guide

3 participants