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

135
Vistas
Best way to detect creation & recreation of HTML element?

I'm trying to write a Chrome extension that would add a sibling to a certain HTML element — let's call it X — on a certain webpage (unfortunately you must be a privileged user to access that webpage, so I can't give a link).

Element X is created when the webpage first loads and then recreated, as part of a whole subtree rooted at one of its predecessors — let's call that predecessor Y — on certain circumstances.

I've been able to use Mutation Observers to detect the recreation of X via detecting changes in Y's child nodes.

But that's quite complicated, and possibly not very efficient, as element Y goes through many changes.

Is there a way to directly observe the creation and recreation of element X? It has a unique id, so there's no problem identifying it.

I'm open to using tools other than Mutation Observers, if there are better ways.

Thank you!

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