My chrome extension basically select some buttons (size of clothes) and then press the checkout button of a shopping website. It's all fine until the checkout page.
This page is slow to load so i need to wait it to be loaded before executing the rest of the script. Any way to do it?
I tried $(document).on("load", function(){
//...
})
and other stuffs like this but doesnt work. Thanks you all!