veliovgroup/spiderable-middleware

Check if prerendering

nicooprat opened this issue ยท 3 comments

(Using Meteor) How can I check whether the code is currently being prerendered or not? Something like location.href.indexOf('?_escaped_fragment_=')? Thanks.

Hello @nicooprat ,

Not possible for right now. As we pretend to be a regular browser as much as possible.
We will add this feature in next release.

Hello @nicooprat ,

Sorry for delay with this one.
Now it's possible, see docs:

Thank you a lot for contribution ๐Ÿ‘
Feel free to close if this solution fits your needs.

Thanks to you!