auxiliary / rpage

Highly responsive pagination for Bootstrap
http://auxiliary.github.io/rpage
GNU General Public License v2.0
110 stars 52 forks source link

Takes couple of seconds to redraw #11

Open martinkrcho opened 9 years ago

martinkrcho commented 9 years ago

I really like the idea behind this project and I would like to use it on my websites, but I am struggling with one huge downside. The pagination takes couple of seconds to redraw when I change the size of its container (or browser). As you can imagine, no one should have something that slow on their website. Have anyone noticed this issue? Is there a way to speed it up?

acoulton commented 9 years ago

We had the same issue - performance was basically unusable - and proposed a fix in #5. @auxiliary found some edge case issues which we've not had a chance to look at, our version is in production at https://www.edbookfest.co.uk/the-festival/events and we've not had problems reported. Ultimately I can cope with the occasional rendering bug vs the very heavy impact on page response time that we were seeing. We'll be keeping the https://github.com/craig410/rpage fork up for the foreseeable future if you want to use it.

auxiliary commented 9 years ago

@acoulton The problem mentioned in #5 only occurs on a resize and not on a load, and apparently only when you're on a page that needs hiding from both ends. You can reproduce the bug by loading a page like this one with a smaller browser size and then increasing the width of the browser (Chrome 44 in my case). This would be the results:

screenshot from 2015-09-15 09 35 31

Other than that the solution in #5 is pretty effective.