Title: Feature request : Autoload
Last modified: August 30, 2016

---

# Feature request : Autoload

 *  [PeterKottas](https://wordpress.org/support/users/peterkottas/)
 * (@peterkottas)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/feature-request-autoload/)
 * Hi there, this is my first official feature request (and probably not last since
   I think this plugin is cool and want to make it better 🙂 ). The ability to autoload
   posts given the bottom of the page is close enough is great. Especially when 
   you can set the distance. What would be a good addition to this is an ability
   to autoload based on distance to bottom of the screen. I think it should be easily
   doable with .getBoundingClientRect() and window.innerHeight and would come handy
   when sidebar is long (dynamic) and bottom of the page is far away. In that case
   you can’t precisely guess the distance from the bottom.
 * [https://wordpress.org/plugins/ajax-load-more/](https://wordpress.org/plugins/ajax-load-more/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * (@dcooney)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/feature-request-autoload/#post-6587091)
 * Hi Peter,
    Not sure I follow this request.
 * Any chance you can provide an example usage?
 * Cheers,
 *  Thread Starter [PeterKottas](https://wordpress.org/support/users/peterkottas/)
 * (@peterkottas)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/feature-request-autoload/#post-6587131)
 * Yeah sure, so the way it currently works is it calculates the distance from the
   bottom of the page. So if the sidebar is long the distance will be high. Consider
   this as an example. [https://tipsforholiday.com/shorts/](https://tipsforholiday.com/shorts/)
   first row is preloaded. Second row loads on page load (not sure why to be honest)
   but then the third row is loaded only if you scroll way down to the footer. Would
   be better if it’s loaded when distance between button and the bottom of the screen(
   not bottom of the page, two different things) is taken into consideration. That
   way it will load content as you scroll to it invariant of the bottom of the page.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Feature request : Autoload’ is closed to new replies.

 * ![](https://ps.w.org/ajax-load-more/assets/icon-256x256.png?rev=2944639)
 * [Ajax Load More – Infinite Scroll, Load More, & Lazy Load](https://wordpress.org/plugins/ajax-load-more/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ajax-load-more/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ajax-load-more/)
 * [Active Topics](https://wordpress.org/support/plugin/ajax-load-more/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ajax-load-more/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ajax-load-more/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [PeterKottas](https://wordpress.org/support/users/peterkottas/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/feature-request-autoload/#post-6587131)
 * Status: not resolved