stayallive / wp-sentry

A (unofficial) WordPress plugin reporting PHP and JavaScript errors to Sentry.
https://wordpress.org/plugins/wp-sentry-integration/
MIT License
305 stars 48 forks source link

Lazy Loading option #117

Closed midweste closed 2 years ago

midweste commented 2 years ago

It seems that sentry is addressing some performance issues with fully loading Sentry and is allowing for lazy-loading of the js component until after page load (or when initiated). https://github.com/getsentry/sentry-javascript/issues/2233#issuecomment-547377460

https://snipboard.io/lufAWJ.jpg

This post is marked version 6.16.1 so maybe a future update as it looks like the js component is @sentry/browser 6.15.0 (aa30ab6)

https://docs.sentry.io/platforms/javascript/install/lazy-load-sentry/

If I have some time over the holiday, will take a look and try to provide a pull request. Thank you for all your efforts!