Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

247
Vistas
Chrome extension items loading not "smoothly"

I have this Chrome Extension where I need to load a big object from Chrome Storage when the user opens the Extension Popup. This object is not needed for the Popup's "landing page" to fully load, but I want to load the object right away to save time for when the user might really need it (in many other "sub pages").

All the "pages" of the Popup are created with a single javascript file, so the object will be available on those "sub pages", even when loaded in the "landing page".

The problem is that when I save the result of the function chrome.storage.local.get into a variable,

chrome.storage.local.get(["wkhighlight_allkanji", "wkhighlight_allvocab", "wkhighlight_allradicals"], result => {
    const allKanji = result["wkhighlight_allkanji"];
    const allVocab = result["wkhighlight_allvocab"];
    const allRadicals = result["wkhighlight_allradicals"];

    // ...
});

the interaction with the "landing page" doesn't work (you can move the mouse, but you can't click on anything) for a couple of seconds (while it is saving the big object into the variable, I presume).

My question is, if there is a way to fix the issue above, with an approach other than only loading this big object when the user really needs it (for example, only when the user enters those "sub pages"). That's the approach I had before, but it always takes like 4/5 seconds. On the other hand, if I could load it right away on the background of the "landing page" it would save a few seconds, which makes a big difference.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda