Closed revolunet closed 8 years ago
Seems great for me! A PR would be nice :)
Do you use the in-viewport feature server side? I wonder how it works :D If you do not use it then maybe you can try to not include it.
Other than that I think an easier fix might be to make contains a function declaration rather than a variable like that. So that the code is only executed when relevant.
Also did you see https://github.com/camwiegert/in-view? At some point I might depreciate this is https://github.com/camwiegert/in-view goes well. They are basically adding features from in-viewport
Thanks for the feedback !
i'm playing with the great phenomic.io and it prerenders all pages and breaks on every browser-only lib
thanks for in-view
looks nice, will try
Other than that I think an easier fix might be to make contains a function declaration rather than a variable like that. So that the code is only executed when relevant.
Can you do that instead? Would be better I think
yep its better :)
i have some trouble running the saucelabs tests though..
i have some trouble running the saucelabs tests though..
No big deal, they are somehow broken that's ok. Your change should be OK
Hi !
I have an issue when pre-rendering pages from server when using
in-viewport
. classic access to unknowglobal.document
. i fixed quickly here https://github.com/revolunet/in-viewport/commit/57e5db365aee600af91d7164313b7355ff9f456b tell me if you want a PRCheers and thanks for that nice lib :)