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

I need way to handle duplicate include ja css #57

Open
vahidalvandi opened this issue Jun 22, 2020 · 1 comment
Open

I need way to handle duplicate include ja css #57

vahidalvandi opened this issue Jun 22, 2020 · 1 comment

Comments

@vahidalvandi
Copy link

I have galley image and i will use laravel shortcodes to append it in content . I have one problem for handle css or js . Because in shortcode i use push blade js or css . If i use multi shortcode it alway push multiply in footer or js .
Do you can help me how i can use multi shortcode and for all just push one time ?

@phuclh
Copy link

phuclh commented May 7, 2022

You can use @once directive to only push one
https://laravel.com/docs/9.x/blade#the-once-directive

I am curious how can you use @push in shortcode?

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

No branches or pull requests

2 participants