CEREBRUS-MAXIMUS / Surfer-Data

Export your personal data in one click
https://surfsup.ai
MIT License
879 stars 42 forks source link

Replacing the hard-coded wait function on initial page load with something else #2

Closed sahil-lalani closed 1 week ago

sahil-lalani commented 1 month ago

Currently, there is a hard-coded wait function on the initial page load. Instead, we'd rather have a more dynamic and flexible way of checking for page load, whether it's through event listeners or waiting for page elements, thus enhancing the user experience by reducing unnecessary wait times.

rafabo7 commented 1 month ago

Hi! I would like to contribute, where can I find the mentioned function?

sahil-lalani commented 1 month ago

Hi! The function is used at the beginning of all the platform-specific functions (e.g. notion.js, github.js, twitter.js, etc) and is defined in preloadFunctions.js