How to process lazy load HTML?

I want to create a simple addons that read HTML content from matches URL and replace some parts of contents.
But when I use jQuery “$(”.price").each(function() { $(this).text(“replaced”); });" It doesn’t replaced any new lazy loaded content.

How to work with that ?

That really depends on the site. The “catch all” solution is to use mutation observer to watch for changes to the DOM, but be careful not to react to your own modifications…

1 Like

Thanks, @freaktechnik, Now I can work with lazy loaded content as I expected.