facebook-group-members-scraper icon indicating copy to clipboard operation
facebook-group-members-scraper copied to clipboard

Chrome page crashes "Aw, Snap. Error 5" after loading too many elements in a page

Open DeborahAnn032 opened this issue 1 year ago • 7 comments

I am on a MacBook Pro M2 with Google Chrome. O am scrolling through a lot of Facebook profiles and I've noticed that after a while the page crashes saying "Aw, Snap". I've tried to increase the browser default cache size but that didn't fix the issue because it's not the problem. The issue could be in the structure limits of the Blink engine. So, I thought "what if I delete some of the "upper" elements while I go through it"? That should remove some "weight".

    var profiles = document.querySelectorAll('tagName');
    for(var i=0;i<profiles.length;i++) {
    profiles[i].remove();
    }

As a matter of fact, by doing this I am able to go farther with the scrolling (lazy loading). But a still after a while it crashes.

The new elements are added, and therefore rendered, while scrolling (lazy loading). I thought: what if I prevent the new elements to be rendered? Basically I would need to set:

element.style.display = 'none'; but I would need to do this before the element is added, otherwise if I do it after it would be still rendered. So, I guess I would need to find the script that get the element from server and I would need to make the appropriate changes before it's added.

What I could do?

DeborahAnn032 avatar May 04 '23 17:05 DeborahAnn032