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

Open
asmaa143 opened this issue Sep 5, 2024 · 8 comments
Open

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

asmaa143 opened this issue Sep 5, 2024 · 8 comments
Labels
bug Something isn't working

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
Sponsor 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants