gajus / usus

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

Allow to signal that page has completed rendering #6

Open gajus opened 7 years ago

gajus commented 7 years ago

Waiting n seconds is rather inefficient.

In addition to waiting mechanism, allow to signal completion of rendering using console.log, e.g. wait for "ūsus-ready" message.

petruisfan commented 6 years ago

Any updates on this issue? Prerender.io uses the window.prerenderReady variable, which is super helpful

gajus commented 6 years ago

It is a simple PR to make.