Message from JavaScript discussions
July 2017
— Ok, nice. TRGWII For paginated templates I made the data injector combine them all into one DocumentFragment before returning it. That way when it gets sent to the insertion function it only has to insert a single document in a single append operation. I think it's a bit messier now, but I'll be pushing it in a few minutes.
I don't like the idea of using loops everywhere for just a single template, but with that set up it allows any number to be processed at once
— Ooooh
— My test bed since I haven't set up Jasmine yet:
— Right now it puts the loader in a loop. The end goal result is to have it not be in a loop, and use the pagination function instead
— Whoop, works
— Er, kind of
— I'll check in a minute :P
— Apparently it inserted a ton of blank templates for some reason, I set elemPerPage
to 999 so that's probably why...
— I was like "wtf why did it take 17ms to load these???" and I scrolled down and noticed the huge scrollbar... lol
— Kek
— I guess that's alright, it goes ahead and tries to insert the number you want, it just doesn't put data in them if there isn't enough.