Allow changing "litespeed_ui_events" for Delayed JS
I'm almost at 4x100 on PageSpeed/Lighthouse with my custom WP frontend, which already has many optimizations for UI modules and vendor dependencies that we are using. I also want to use LSC Delayed JS for any other plugin scripts, but since I've built a custom lazy loading flow, at one point I have to override Delayed JS events with my events to not break anything. Only a small, fully backward-compatible modification is needed for that here. Can we change the following?
const litespeed_ui_events = [...]
↓
window.litespeed_ui_events = window.litespeed_ui_events || [...]
This would let developers define custom events earlier without breaking anything. Thanks a lot!
Edit (OFF-TOPIC):
I'm in love with this incredibly powerful plugin!
I just used the litespeed_buffer_after filter to "monkey-patch" the inlined JS while waiting for decision/merge/release.