miguel-perez / smoothState.js

Unobtrusive page transitions with jQuery.
MIT License
4.43k stars 508 forks source link

Force animate in even if the page isn't loaded yet (or use lazy load?) #367

Open JTRazbo opened 6 years ago

JTRazbo commented 6 years ago

As I understand smoothstate, it waits until the entire page is loaded, then animates the content in. Is there a way to only animate in the top or just the header of the page? Potentially even animate in content before the page is loaded? Or would adding in something like lazy loading handle this issue?

For my site now, we have a few longer pages that take a bit to load, and the lazy load seems to exasperate this issue as we end up waiting for a larger page to load, making the site seem slow. Without smoothstate, the user can see the page much sooner, and it appears faster, as they ingest content at the top of the page while the rest still loads.

Thanks in advance for any responses!