soobin-lim / homework19

0 stars 0 forks source link

Object Store https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/objectStore #3

Open soobin-lim opened 2 years ago

soobin-lim commented 2 years ago

Transction https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/transaction

soobin-lim commented 2 years ago

Web Worker https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API

soobin-lim commented 2 years ago

Service Worker https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API

soobin-lim commented 2 years ago

worker context

soobin-lim commented 2 years ago

Using Service Worker https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API/Using_Service_Workers

soobin-lim commented 2 years ago

ServiceWorkerContainer.register() https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/register

soobin-lim commented 2 years ago

If successful, the service worker is executed in a ServiceWorkerGlobalScope; this is basically a special kind of worker context, running off the main script execution thread, with no DOM access.

soobin-lim commented 2 years ago

Service workers demo To demonstrate just the very basics of registering and installing a service worker, we have created a simple demo called sw-test, which is a simple Star wars Lego image gallery. It uses a promise-powered function to read image data from a JSON object and load the images using Ajax, before displaying the images in a line down the page. We’ve kept things static and simple for now. It also registers, installs, and activates a service worker, and when more of the spec is supported by browsers it will cache all the files required so it will work offline!

soobin-lim commented 2 years ago

https://github.com/mdn/sw-test/

soobin-lim commented 2 years ago

https://developer.mozilla.org/en-US/docs/Web/Manifest#Deploying_a_manifest_with_the_link_tag