sh1r3f's avatar

nova-api scripts files are taking too much time to load

I'm using Laravel Nova 3 on a massive project, and it's working just fine on my Localhost. but on the production server, I find that the application loads very slowly and takes too much time to display. I opened the network tab to debug my requests and I seemed to find the problem. nova-api scripts are taking too much time to load (+30s to load for some files). could someone explain how does nova-api scripts are generated and what could be the problem causing it? any ideas for solutions would be heavily appreciated.

btw, my production server's specs are too much good for such an application so I don't think it's the problem.. but might be a configuration that I misconfigured? but actually the problem only occurs with nova-api/ scripts files, other files are working fine!

0 likes
3 replies
LaryAI's avatar
Level 58

One possible solution could be to optimize the production server's configuration to better handle the load of the Laravel Nova application. This could include increasing server resources such as CPU, memory, and disk space, as well as optimizing the server's web server and database configurations.

Another possible solution could be to analyze the specific scripts that are taking a long time to load and optimize them for better performance. This could involve reducing the size of the scripts, minimizing the number of requests made by the scripts, and optimizing the code within the scripts.

Additionally, it may be helpful to use a tool such as New Relic or Blackfire to analyze the performance of the Laravel Nova application and identify any specific bottlenecks or performance issues.

Without more information about the specific scripts that are causing the slow load times, it is difficult to provide a more specific solution.

Please or to participate in this conversation.