A
A
AdamAbakumov2019-08-31 13:25:13
JavaScript
AdamAbakumov, 2019-08-31 13:25:13

How to implement a Service worker to complete the content before the first page load?

Is it possible to implement the following using the service worker and if so, how:
1) there is a code.js file included in test.html Is it possible to add a few lines of code to code.js before the first page load and code.js execution using the service worker?

2) there is a data.txt file, data from which is used in test.html using js Is it possible to add several lines to data.txt before the first page load using service worker?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question