I have pages where the content downloaded will not reach the scrollThreshold height. In this case, it keeps incrementing the pages and runs many queries per second to the server.
I've found a way to stop this but it is raising an error "Uncaught TypeError: Cannot read property 'querySelectorAll' of null"
Is there a proper way to do it? Thank you!
Here is my code:
I have pages where the content downloaded will not reach the scrollThreshold height. In this case, it keeps incrementing the pages and runs many queries per second to the server. I've found a way to stop this but it is raising an error "Uncaught TypeError: Cannot read property 'querySelectorAll' of null" Is there a proper way to do it? Thank you! Here is my code: