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

Fix missing css and load JS on request #276

Closed
wants to merge 1 commit into from
Closed

Fix missing css and load JS on request #276

wants to merge 1 commit into from

Conversation

howdu
Copy link
Collaborator

@howdu howdu commented Aug 20, 2023

Lazy loading was being added to the CSS when it's the JS which's lazy loaded:

ax-load-src="{{ \Filament\Support\Facades\FilamentAsset::getAlpineComponentSrc('curation', 'awcodes/curator') }}"

@awcodes
Copy link
Owner

awcodes commented Aug 21, 2023

I still need to fix the css. I'm not happy with the v3 styles includes and haven't decided on that aspect yet, but the alpine component isn't even being used at the moment. Also with alpine async components the loadedOnRequest isn't needed.

@howdu
Copy link
Collaborator Author

howdu commented Aug 25, 2023

Sorry just realised I was missing the css import from my build awcodes/filament-curator/resources/css/plugin.css

@howdu howdu closed this Aug 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants