gajus / usus

Webpage pre-rendering service. ⚡️
Other
805 stars 33 forks source link

Custom page load event. #26

Closed SkeLLLa closed 6 years ago

SkeLLLa commented 6 years ago

Hello. Is there any way to provide some custom event that will indicate that page is loaded? For example, by setting some variable or firing custom event?

As an example you may refer to chrome-render lib (https://github.com/gwuhaolin/chrome-render):

useReady: boolean whether use window.isPageReady=1 to notify chrome-render page has ready. default is false chrome-render use domContentEventFired as page has ready.

gajus commented 6 years ago

https://github.com/gajus/usus/issues/6