Commit Graph
5 Commits
Author SHA1 Message Date
Kevin Ansfield 2f385ba5f1 Upgrading Casper to 2.0.4 2017-08-15 18:01:02 +01:00
Kevin Ansfield 0f9410fb3d 💄 refactor infinite scroll (#325)
closes #321, closes #323
- use `requestAnimationFrame` and related techniques to minimise scroll processing
- add an `isLoading` guard to ensure we don't try to process anything until the next page has been loaded+inserted
- check for a 404 as an indication we've loaded as many pages as possible at which point the scroll behaviour is removed
- sanitize `window.location.pathname` to remove hash params and any double-slashes that may result
- add a 100px buffer from the bottom of the screen so that it's not necessary to exactly hit the bottom before infinite loading is triggered
2017-07-10 19:53:42 +07:00
Kevin Ansfield c97defd40a Refactor post.hbs JS 2017-06-19 00:11:32 +01:00
Kevin Ansfield 5c51195ca6 Upgrading Casper to 1.3.1 2016-07-26 13:01:26 +01:00
Kevin Ansfield 31025f2f15 Merge pull request #218 from ErisDS/jquery-support
Add jQuery, as this is being removed from Ghost
2015-09-02 17:54:19 +01:00