Automattic / crowdsignal-forms

Gutenberg blocks for Crowdsignal
GNU General Public License v2.0
13 stars 9 forks source link

Load blockObserver on DOM ready instead of window load #268

Closed mae829 closed 3 months ago

mae829 commented 11 months ago

Resolves #250

On sites with 3rd party elements and dependency scripts (like Ads) the components take a while to load because of the window load event trigger. This switches the blockObserver to load on DOM load/ready for a more optimized delivery and load of the components to the user.