Lecture 8 (fetch) Flashcards
1
Q
fetch
A
used to obtain a resource file (css,js,html), image, video, data fetch(url). then(function(response){ // handle the response}). catch(function(error) { // handle the error })
2
Q
json
A
JavaScript Object Notation:
- Format for data sharing
- Language independent
- Alternative to XML
3
Q
web app manifest
A
- list of contents
- provides info about the app
e. g. theme colour, icons, name - json file
4
Q
service worker
A
- makes apps and web pages available offline
- communicates with network and cache