Feature chrome.storage.local.get running very slowly?

Hello. In the process of writing extensions for Google Chrome encountered a problem. I get a previously saved setup using the asynchronous function chrome.storage.local.get about it this way:
let date = new Date();
chrome.storage.local.get(null, result => {
 console.log('Settings stored in: '+new Date() - date+'ms');

The function call is in popup.js every time the user opens the popup window of the extension. When you first start the browser time the settings can go up to indecent a few seconds.
Subsequent calls to get the result for ~100-200ms.
March 19th 20 at 09:12
1 answer
March 19th 20 at 09:14
Use localStorage instead of chrome.storage.local

Find more questions by tags Extensions for browsersGoogle ChromeJavaScript