Closed H1D closed 10 years ago
I've tried this PR out and it works well for me and improves initial rendering time in my use case.
@eviltrout ping
Just tried it out and it works great. Thanks a lot!
One minor issue I've noticed with cloaking by default: If the cloaked-collection's content is being loaded asynchronously, the entire collection will be cloaked until a scroll event occurs because there's nothing to uncloak
any view added to the collection after the scrollTriggered
in _startEvents
executes.
That said, I believe I have a fix and will submit a PR.
OK, let's start #12 over
This PR:
defaultHeight
(this must be implemented in order to have "cloaked" state as default)