patrickkunka / mixitup

A high-performance, dependency-free library for animated filtering, sorting, insertion, removal and more
https://www.kunkalabs.com/mixitup/
4.52k stars 735 forks source link

MixitUp + Pagination endlessly re-requests assets and media files #559

Open Baferas opened 4 years ago

Baferas commented 4 years ago

Hello.

MixItUp rocks, i have used it many times and so far i had no real problem + many other words of goodness. With that said, I am facing a peculiar problem.

I am using MixitUp + Multifilter to show products in my collection pages without any trouble.

However, one of my collections has too many items and each item has a featured image + in most cases an .mp4. Even though this sea of media is somewhat managed+balanced out with lazyloading, i decided to try out the Pagination extension of MixItUp to see if i could achieve better performance results and/or experiment.

The result is very weird.

When i scroll to bottom, the Network tab in dev tools goes BERZERK with requests and files, requesting files that shouldnt be normally loaded (for example, lazyloaded secondary media that should show/load only when a product is hovered). If i scroll up, the same files are re-requested and re-fetched and re-downloaded.

So if you keep scrolling up and down and up and down, it keeps re-requesting and re-fetching and re-downloading the same files. (Very funny to see a page requesting 600 files and 1.6gb of data - now thats a 3g-4g mobile friendly policy keke).

See this

This behavior goes away when i remove the pagination extension.

Any ideas?

@patrickkunka I cant share the URL of the page publicly yet, so if you need to see the page i have to send you the URL in some private way.

THANKS!

Baferas commented 4 years ago

i guess this plugin is now dead. T_T, shame it was a wonderful little thing