Skip to content

Commit

Permalink
Merge pull request #48 from abdulmejid-assistentry/hotfix/loaded-on-r…
Browse files Browse the repository at this point in the history
…equest

Lazy Loading activitylog.css to Prevent Unnecessary Conflicts and Asset Overload
  • Loading branch information
rmsramos authored Sep 22, 2024
2 parents 42a9e0a + c5e097e commit d0b204d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ActivitylogServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function configurePackage(Package $package): void
public function packageBooted(): void
{
$assets = [
Css::make('activitylog-styles', __DIR__ . '/../resources/dist/activitylog.css'),
Css::make('activitylog-styles', __DIR__ . '/../resources/dist/activitylog.css')->loadedOnRequest(),
];

FilamentAsset::register($assets, 'rmsramos/activitylog');
Expand Down

0 comments on commit d0b204d

Please sign in to comment.