Hello,
I’ve been noticing a page loading very slowly (this one: https://www.seanarenas.com/games), so I did an inspection on it, and found this:
That’s a little scary!
Anyone know what to do?
Hello,
I’ve been noticing a page loading very slowly (this one: https://www.seanarenas.com/games), so I did an inspection on it, and found this:
That’s a little scary!
Anyone know what to do?
Could you provide more details? What are you trying to do? What does the code look like?
Thanks
Code is empty:
It’s at: https://www.seanarenas.com/games
Is it slow for you?
Yes, it’s slow for me. And…
I noticed that in both the table and the individual displays following the table (Repeater?), that things fall apart starting with Cobras . This tells me that perhaps there’s a problem with limits, a query, an array, item count, or something else [apparently] sinister in nature.
Does that ring a bell for you? Is there something in the code that might cause things to fall apart after a certain number of entries?
Any other clues you can supply?
It’s not “falling apart,” I just haven’t uploaded photos and added data for all of the records yet.
Does having empty fields slow down a page? Seems it would be faster than, say, with a bunch of images to download.
I have both a table and a repeater because I’ll end up with eacvh on separate pages to give users an option they want to view with, but on the same page for now so I can see how they look with different data lengths as I fill the table.
the page data collection limit is set to 1,000. if i set it for less and the reoeater exceeds that, will it continue to display?
The warning messages indicate “null or undefined”, which is most likely a result of the missing pictures and text.
You are correct that downloading a bunch of images takes time, but so does following the protocol trying to find images: request, timeout, fail, retry, timeout, fail, retry, tears and crying…
Try limit your test to the data that is complete and see how that works. Then you can add additional data in stages.
Like a filter for Has Image or something. That makes sense. Since obtaining and modifying and uploading images and adding data for all of them would take some time.
Thanks.
“Sanity checking” is always a good idea. Good code always assumes the worst, and checks for any possible problems. Make sure that when attempting to display something , that the something exists.
OK I got rid of all the warnings, which were due to missing fields in the database. I either filled them or filtered the. Now it’s MUCH faster now that places aren’t seeking data in empty spaces.
However, I can’t figure out the error yet, any idea what this is about?
This is the only code I have on the page:
It’s here:
https://www.seanarenas.com/games
Hey Sean,
Is it fast “enough” now? Maybe the error doesn’t matter. Although I tend to believe that all errors matter.
Not sure what’s causing the error, but on the surface it looks like a third party service (fast.fonts.net) is unvailable. I have no clue why/how/what. What does the page look like? What elements? Settings?
(I’m asking for help from some people who are smarter and better looking than me.)
Meanwhile, if it’s working OK, then it’s tough to argue with success.
Yisrael
It’s certainly much faster. Is that I’ve restricted the elements to those that don’t have any null fields (probably the first thing you should check for when someone complains about speed on a database page) it still has a lag before it loads. I don’t know what that fast fonts thing is either.