-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Delay when opening the first page for the first time #283
Comments
@erycson Can you please create a brand new Laravel project to see if the problem exists:
Once you have done that open the JS file in the browser via How are the speeds then? |
After stopping using Docker, that is, using
|
Are your project files located in the Windows filesystem? Did you test out on a brand new project using the steps in #283 (comment)? |
Yes, I ran the project 100% using only Windows, without using Docker and it was still slow. When I created a new project and copied the files to it, I didn't experience any slowdowns. In fact, when creating a new project, I felt a small slowdown of 10 seconds on average in SASS, but then it no longer appeared. |
So it seems that the slowdown is specifically related to your application, as you do not see the slowdown on a fresh application? |
But how could I DEBUG this specific slowness? Do you have any suggestion? |
Have you tried deleting the Otherwise, I would try either:
|
Gonna close this one out as it seems like an application or 3rd party code issue. You may also want to try Vite's built in profiling tooling: https://vitejs.dev/guide/performance.html#audit-configured-vite-plugins Hope you can get to the bottom of it. |
I resolved the slowdown issue after including the project folder in the Windows Defender excluded folder |
Glad to hear you got this sorted and thanks for following up for others that might run into this issue. |
Vite Plugin Version
v1.0.1
Laravel Version
v10.24.0
Node Version
v21.5.0
NPM Version
10.2.4
Operating System
Windows (WSL)
OS Version
11
Web browser and version
Google Chrome Version 120.0.6099.227 (Official build) 64 bits
Running in Sail?
No
Description
I'm sorry for opening it again, but they closed the other issue without the case being resolved. So I had to reopen here again.
Vite runs outside of Docker, the entire project is outside of Docker, I only use Docker to run PHP and MySQL.
I develop using Laravel which runs on Docker, but runs Vite outside of Docker, what is happening is that, when opening the website for the first time (any page), there is a huge delay (up to 10 minutes) for me to receive the assets from the "yarn dev" server. This is getting worse every day, because I've always done it this way but now I practically have to run "yarn dev" and go out and do something. Remembering that the Vite server runs quickly. The project is not big, it has around 50 assets (JS, CSS and images)
Some images to demonstrate what I'm talking about
Time to start Vite
Time for Vite to respond to requests in the browser
It's not just SASS that is slow, all images and javascripts are slow
Steps To Reproduce
I don't know what is causing the slowdown, so I don't yet know how to replicate the problem
The text was updated successfully, but these errors were encountered: