owenvoke / blade-fontawesome

A package to easily make use of Font Awesome in your Laravel Blade views.
https://packagist.org/packages/owenvoke/blade-fontawesome
MIT License
162 stars 27 forks source link

Slow booting time #43

Open dgironella opened 2 years ago

dgironella commented 2 years ago

Description

I find in one of our servers that if install this package laravel have a big slow booting. More than 4 seconds. If we remove this package all work correctly.

Possible some app provider register? Don't know, or need some php library version. Not errors on logs. Only slow booting.

Your environment

PHP 8.1.8 Laravel 9

anilken commented 2 years ago

Cache your files using the php artisan icons:cache command it will work fast

wit3 commented 2 years ago

Cache your files using the php artisan icons:cache command it will work fast

php artisan icons:cache

doesn't solve the problem at all, my boot time w/o blade fontawesome is 70 ms and with this package ( cached ) is 400 ms

owenvoke commented 1 year ago

Yeah, there are definitely issues with the way Blade UI Icons work. 🤷🏻 I think it's just because there are so many files, not really much we can do.

If you find a solution, feel free to PR it. 👍🏻

Excelautomation commented 10 months ago

php artisan icons:cache worked for me. I had 27 seconds loadtime before caching.