Skip to content

fetch() for local resources #3827

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions 5-network/01-fetch/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ For example, we can use a network request to:

...And all of that without reloading the page!

Fetch is not limited to network request though. It can load local assets dynamically, like SVGs, HTML fragments, or configurations. For example, `fetch("face.svg")` becomes useful when you need to modify the SVG element dynamically.

There's an umbrella term "AJAX" (abbreviated <b>A</b>synchronous <b>J</b>avaScript <b>A</b>nd <b>X</b>ML) for network requests from JavaScript. We don't have to use XML though: the term comes from old times, that's why that word is there. You may have heard that term already.

There are multiple ways to send a network request and get information from the server.
Expand Down