#pages loading slowly

38 messages · Page 1 of 1 (latest)

surreal matrix
#

So my pages are loading slowly and i'm not sure what the problem can cause and where is should check for the problems since i didn't get any errors etc

#

i also did make a blanked page but sitll taking to long imo

junior field
#

Hi Alix, install barryvdh/debugbar this will give you some insight. It's likely that you have lots of queries running to get the site setup, or you have a misconfiguration somewhere.

Often a mistake I see is people creating depencies that make API calls to get built so every time Laravel boots up its waiting for a third party. Worth checking these things 👍🏻

surreal matrix
#

C:\xampp\htdocs\cryptodashboard\storage\framework\views\212dba7c6da15555ca8ce3023071ece0.php in line 101

#

does this mean it's in my blade view file?

#

so my botting is 114 ms

#

is that massive?

#

Implicit conversion from float 1686681000.843 to int loses precision in just getting messages *now like this

junior field
#

Have you got a screenshot of the debug bar? That would suggest it's at that file for sure. What's in it?

surreal matrix
#

when i go to the blanked page (calculator) i get request duration 182ms

#

is big

#

not sure which page you exactly want a screenshot of

junior field
#

What does the queries tab look like on the debug bar? 182ms is slow, but not entirely unexpected on a local development

#

I'd imagine your queries should just be fetching the user logged in. Doesn't appear to be much else going on there without stepping through the code

surreal matrix
junior field
#

So 14ms on your user query. Seems reasonable. What kind of machine are you testing on? With only 22mb of memory being used it does seems there's a bit of a hang somewhere, normally it'd be database level. Anything interesting under the timeline tab?

surreal matrix
#

i'm just using xampp

#

if that answers the question

#

i am also calling external api for data tho

#

but for my blanked site it doesn't matter thats more for my main page where i also found a solution for

junior field
#

Ok so shouldn't be calling anything on your blank page.

So what does your timeline tab look like on the debug bar?

surreal matrix
#

nope

junior field
#

Hmmm. Looking at the video you sent that seems like a much longer hang than < .2 of a second. If you just refresh your blank page does it feel reasonable speed wise

#

Depending on what hardware you're running in a local environment with packages installed and other stuff going on in the background 180ms isn't too slow

#

Just wondering if there is anything going on between the request for the second page

surreal matrix
#

so at optimisation is nothing wrong

junior field
#

Nothing obvious that I can see unfortunately

surreal matrix
#

maybe need to use something else than xampp?

ember wagon
#

@surreal matrix I doubt it’s XAMPP. You’ve already established that the server is sending responses in around 200ms. So the issue is client-side. You seem to be using some sort of SPA or something instead of doing “full” page refreshes.

#

So look at what’s going on there.

#

Seems to be something heavy going on that’s taking a long time to render the DOM.

surreal matrix
#

i will look into is asap

#

i will let you guys know

surreal matrix
#

Is there btw something else than xampp thst you guys prefer?

junior field
#

Personally I use a custom Docker setup. Laravel already has Valet but this is MacOS only. If you wanted I could provide you with my docker configuration but wouldn't be able to offer much support on it - you'd have to learn the fundamentals of docker. Following something like https://laracasts.com/series/the-docker-tutorial should help

Laracasts

Docker makes development and deployment much easier, since it removes the need for installing and configuring software on your server or local machine. But there are a lot of options out there, and getting started can sometimes be a bit overwhelming.

Follow along in this series, as we learn how to use Docker from a beginner's point of view. By ...