blade-google-material-design-icons icon indicating copy to clipboard operation
blade-google-material-design-icons copied to clipboard

Slow App Booting Time

Open Pizdiec opened this issue 1 year ago • 3 comments

Hi, I am experiencing long boot times(+12 seconds) from requiring package.

Summary: Using the codeat3/blade-google-material-design-icons package significantly increases my Laravel application's booting time. After profiling my application with Debugbar, I found that this package contributes to a large percentage of the time spent during the boot process.

Environment: Laravel Version: 11.31 PHP Version: PHP 8.3.6 Package Version: 1.19 OS: Windows 10

Without package:" image " after :"composer require codeat3/blade-google-material-design-icons" With package:" image "

Pizdiec avatar Dec 29 '24 21:12 Pizdiec

Hey @Pizdiec , did you try caching the icons?

I know its a huge iconset, but caching generally helps, let me know if even post caching if the performance is this bad?

swapnilsarwe avatar Jan 13 '25 11:01 swapnilsarwe

Hey @Pizdiec , either you are doing something wrong or you are not telling everything. Can you share a snapshot of composer file + how many icons are you including. There is something we are surely missing here. You can also try php artisan icons:cache on production - this will improve the performance for sure.

I just spinned up a new laravel app with the package and included icons on the welcome page. I am getting 14ms booting time. image

swapnilsarwe avatar Jan 13 '25 12:01 swapnilsarwe

Thanks for responding.

I did a new test with freshly installed laravel and I still get 5-8 seconds delay. I should mention that I use breeze with livewire functional option selected. I did not cache icons. I tested only locally and already noticed that with longer wait time it is difficult to build. using "php artisan icons:cache" does solve it, booting time is cut to milliseconds instead of seconds.

composer json.: image

Pizdiec avatar Jan 14 '25 11:01 Pizdiec

Hi, My app was taking more than 15 seconds to load. I really spent alot of time checking everything and still the issue didn't solve. Literally I spent days on this issue as I had multiple packages installed on my Laravel project and couldn't check all one by one. Finally, I came to see this issue, ran the icons:cache command and my app is now loading within a second.

This command should be mentioned in docs because it really caused serious issue for app if we don't run it. It really spent alot of my time.

Tayyibyasin7860 avatar May 31 '25 13:05 Tayyibyasin7860

It's already mentioned in the docs under "Blade Icons" heading. Not sure ever got time to read it. Anyways just for the one's who are not detail readers of the docs we have added another heading "Caching icons" in README so you get to read it twice to miss.

Hi, My app was taking more than 15 seconds to load. I really spent alot of time checking everything and still the issue didn't solve. Literally I spent days on this issue as I had multiple packages installed on my Laravel project and couldn't check all one by one. Finally, I came to see this issue, ran the icons:cache command and my app is now loading within a second.

This command should be mentioned in docs because it really caused serious issue for app if we don't run it. It really spent alot of my time.

swapnilsarwe avatar May 31 '25 19:05 swapnilsarwe

Closing this since we have added the dedicated section for caching. Feel free to open if still any issues with performance found.

swapnilsarwe avatar Jun 02 '25 16:06 swapnilsarwe