Experience Webpage otherwise background PageAn experiences page is yet another form of a back ground program that’s initially work on, however immediately following it goes idle it is unloaded and that is only piled once again if it’s called for.
Logs one information about your expansion, such as any information stored in order to regional sites, so it form could well be printed in the record program.It work on on condition that requiredExample: Whenever we want brand new popup symbol to help you emphasize for the specific issues of one’s webpage
To operate brand new app in the history, we have to specify it within the manifest.json then carry out the knowledge.js document when you look at the texts folder (for many who haven’ already over it)
Note: When chronic was false, the background page instantly unloads just after 5 seconds of no hobby, that is when no audience was basically invoked for 5 moments. Note, the backdrop page was a different sort of invisible webpage that is not linked to all pages and posts in any way.
You are able to have several background users if you want [From chrome docs] however for the app, we’ll enjoys an individual history webpage (experience.js)
Understanding the move of our App
If you see the message.js file, precisely the first line rather than the message lower than they, there is certainly next syntax chrome.runtime.sendMessage();
Читать далее «Such as for example, should you want to make a purpose that simple unit»