Skip to content
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

[Bug]: When Install package, the project becomes very heavy #1929

Closed
asmaa143 opened this issue Sep 5, 2024 · 10 comments
Closed

[Bug]: When Install package, the project becomes very heavy #1929

asmaa143 opened this issue Sep 5, 2024 · 10 comments
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@asmaa143
Copy link

asmaa143 commented Sep 5, 2024

What happened?

When Install package, the project becomes very heavy

How to reproduce the bug

No response

Package Version

No response

PHP Version

None

Laravel Version

No response

Alpine Version

No response

Theme

None

Notes

No response

Error Message

No response

@asmaa143 asmaa143 added the bug Something isn't working label Sep 5, 2024
@danie-ramdhani
Copy link

how about try clear the cache?

php artisan optimize:clear

@asmaa143
Copy link
Author

asmaa143 commented Sep 8, 2024

how about try clear the cache?

php artisan optimize:clear

all method and php artisan config:cache , when remove package project become light

@ahmadrivaldi-arv
Copy link

ahmadrivaldi-arv commented Sep 9, 2024

I had this issue last week. running fine in local but when i push to production my app is very slow (before i install this package it runs fine)

laravel-livewire-tables using blade-icons

try:

php artisan icons:cache

in blade-icons documentation it says you should cache icons or your app will slow down. read this for more details doc: caching

@asmaa143
Copy link
Author

asmaa143 commented Sep 9, 2024

I had this issue last week. running fine in local but when i push to production my app is very slow (before i install this package it runs fine)

laravel-livewire-tables using blade-icons

in blade-icons documentation it says you should cache icons or your app will slow down. read this for more details doc: caching

still same issue in local and production

@ahmadrivaldi-arv
Copy link

ahmadrivaldi-arv commented Sep 9, 2024

I had this issue last week. running fine in local but when i push to production my app is very slow (before i install this package it runs fine)
laravel-livewire-tables using blade-icons
in blade-icons documentation it says you should cache icons or your app will slow down. read this for more details doc: caching

still same issue in local and production

have you try this?

check your livewire-tables.php configuration make sure the cache_assets set to true

/**
 * Cache Rappasoft Frontend Assets
 */
'cache_assets' => true,

@ahmadrivaldi-arv
Copy link

ahmadrivaldi-arv commented Sep 9, 2024

same with me, struggling with this issue for 1 week, already trying optimize:clear and optimize the issue still same

when i open dev tools -> network tab -> it show the asset of laravel-livewire-tables like core.min.js etc took 2 second to load
so my production total time to load the page almost 20second, that sound crazy

i'm trying to remove this package and boom my app run fine after that. So I thought this library had a problem until I found the problem, which was in the dependency library blade-icons and trying caching the assets and now it works fine

@danie-ramdhani
Copy link

same with me, struggling with this issue for 1 week, already trying optimize:clear and optimize the issue still same

when i open dev tools -> network tab -> it show the asset of laravel-livewire-tables like core.min.js etc took 2 second to load so my production total time to load the page almost 20second, that sound crazy

i'm trying to remove this package and boom my app run fine after that. So I thought this library had a problem until I found the problem, which was in the dependency library blade-icons and trying caching the assets and now it works fine

Ah yeah, that is known issue #1375

Alternatively you can just manually import datatable assets using vite besides automatically injected assets

@lrljoe
Copy link
Collaborator

lrljoe commented Sep 9, 2024

What @danie-ramdhani said, bundle the assets via Vite, and it'll be speedy!

Caching the blade icons is also sensible!

@asmaa143 - please try bundling! I'd suggest also bundling Livewire itself, as it also provides some efficiencies.

@alvitres01
Copy link

Tuve este problema la semana pasada. funcionando bien en local, pero cuando empujo a producción, mi aplicación es muy lenta (antes de instalar este paquete, funciona bien)

laravel-livewire-tables usando blade-icons

probar:

php artisan icons:cache

En la documentación de blade-icons, dice que debe almacenar los íconos en caché o su aplicación se ralentizará. Lea esto para obtener más detalles Doc: Almacenamiento en caché

I was having the same problem, I tried the icons solution and it worked perfectly, very grateful.

Copy link

stale bot commented Nov 4, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Nov 4, 2024
@lrljoe lrljoe closed this as completed Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

5 participants