-
Notifications
You must be signed in to change notification settings - Fork 22.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What is JavaScript: use JS module instead of async/defer/DOMContentLoaded #34937
Conversation
files/en-us/learn/javascript/first_steps/what_is_javascript/index.md
Outdated
Show resolved
Hide resolved
files/en-us/learn/javascript/first_steps/what_is_javascript/index.md
Outdated
Show resolved
Hide resolved
files/en-us/learn/javascript/first_steps/what_is_javascript/index.md
Outdated
Show resolved
Hide resolved
Preview URLs
Flaws (1)Note! 2 documents with no flaws that don't need to be listed. 🎉 URL:
External URLs (2)URL:
(comment last updated: 2024-07-20 19:23:05) |
files/en-us/learn/javascript/first_steps/what_is_javascript/index.md
Outdated
Show resolved
Hide resolved
…dex.md Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
files/en-us/learn/javascript/first_steps/what_is_javascript/index.md
Outdated
Show resolved
Hide resolved
…dex.md Co-authored-by: Mauro Bieg <mb21@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mb21 I like this new structure. What do you think? Is this ready for merge?
Oh, that was fast! Cool. Only one gotcha: I've updated the two example scripts mentioned above, and due to CORS, of course the external script works only if you spin up a local server and not by just opening the file in your browser with It's a bit of a bummer for the intro, but considering that actually lots of things only will work on the same origin, perhaps it's good to introduce that concept early? On mac and many Linux distros, python is already pre-installed and you can do |
Oh! Bummers. I totally forgot about CORS. I think we need to mention that here, and link to https://developer.mozilla.org/en-US/docs/Learn/Common_questions/Tools_and_setup/set_up_a_local_testing_server. Would you like to do it? |
change examples according to update in mdn/content#34937
Description
On the What is JavaScript page of the introductory guide:
</body>
<head>
but use JavaScript modules instead of async/defer/DOMContentLoadedMotivation
Additional details
closes #33881
TODO: