logviewer icon indicating copy to clipboard operation
logviewer copied to clipboard

load more - unresponsive af

Open sparcut opened this issue 8 years ago • 2 comments

When you click load more on main page, site becomes unresponsive af, blocks input until loaded more.

sparcut avatar Nov 18 '17 03:11 sparcut

Hey, this is a known issue, with not a lot I can really do about it (I might replace it with some kind of infinite scroll) - it simply has to do with the fact that loading 4000 buttons is slow af in angular. When this version of the logviewer was originally created, the list of channels was just 40, which worked totally fine, but nowadays that list is more than 100 times as large, so it no longer performs well; I am currently working on the logviewer v4 which will fix scaling issues like these.

For now, I suggest simply not clicking the button and searching for the channel you are looking for via the search box.

Hope that answers your question!

CBenni avatar Nov 18 '17 15:11 CBenni

I haven't used Angular >2 and I only had a quick glance, but it looks like you have a channellimit which is used to render x amount of channels.

Instead of setting that to undefined, why not add 50 or something to that each time it's clicked. Could start to get complicated with in, lazy load the next 'page'. All channels are returned from api? (prob fine cause small though)

Anyway, you're rewriting. Will it be using Angular <2? (I don't see branch :thinking:)

sparcut avatar Dec 20 '17 02:12 sparcut