Hi guys,
so, I've recently installed Metronic Laravel 8.2.5 on my machine and I've built some views with few of Metronic's components (datatables, cards, date rangepickers, etc.).
However, since start I noticed terrible performances concering assets loading on each Metronic's webpage.
I've tried Chrome, Firefox and Edge, both with custom and out-of-the-box settings but the issues persists. Metronic's assets are slowly loaded one after the other with the previous halting the second, like a sequence, like a concurrent job queue.
My colleague, who's using the same exact code from our collaborative repo is experiencing nothing like this.
I'd also say that I've just installed the starterkit and it's behaving the same way..
I'm on Windows 10 using VSCode with XAMPP on PHP 8.3 (same as my colleague's machine).
I'll attach two screenshots, on of VSCode's terminal after launching php artisan serve
and the second with Google Chrome's devtools network page.
Screenshots:
https://ibb.co/hZYsNC8
https://ibb.co/VNR8g7B
Can anyone help me figure out how to speed the loading of said assets?
Hi Lore Porre,
Thank you for sharing your solution! It’s great to hear that you resolved the issue.
For anyone else experiencing similar problems with Metronic, it may be helpful to check PHP.ini configuration, especially the Xdebug extension settings.
Thank you
I figured it out with help from my colleague, it was the PHP.ini configuration file that had Xdebug extension active with xdebug.start_with_request=
with a "yes" value.
Now I've commented it:
[xdebug]
; xdebug.mode=debug
; xdebug.start_with_request=yes
; xdebug.discover_client_host=yes
; xdebug.client_port=9003
; xdebug.idekey = VSCODE
; xdebug.log_level=0
; xdebug.start_with_request=yes
; xdebug.client_host="127.0.0.1"
; zend_extension = xdebug