L
L
lightalex2017-08-18 01:55:53
JavaScript
lightalex, 2017-08-18 01:55:53

How to edit html file using google extension?

Hello
I am writing an extension for Chrome
The task was to make the page generated by the extension load as fast as possible
The page consists of information that does not change very often (once a week, not more often)
At the moment the page is generated using JS every time
I came up with the idea when changing information, just change information on the html page, and then just show it.
Thus, each page will not be generated in vain and it will be displayed faster.
But the question arose how to change the contents of files using an extension?
Maybe someone will tell?
Or maybe there are ideas how to solve the problem in a different way?
Thanks in advance for all replies!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stalker_RED, 2017-08-18
@Stalker_RED

Save the finished HTML code in localStrorage, a few megabytes will fit.
If this is not enough. You can also write to files.
https://developer.chrome.com/apps/fileSystem

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question