-
Notifications
You must be signed in to change notification settings - Fork 307
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
Load the CSS/JS at specified moment #997
Comments
you can enable and disable whatever you want ... this is just a sample from one of our projects ... using custom bootstrap theme |
I can, yes. But the issue is when it is being inserted. Even if I let a single JS file be enabled, it -will- be inserted before my scripts due to being called way earlier. I need a solution to disable the pre-loading and choose when exactly to load the CSS and JS stuff so I can load it from within my procedure. But looking into the code, I could not see anything. So appearently i now must make my own extension and re-load it before YiiBooster… Or is there still a way to get this behaviour, without me making a new component? Good thing my code is open sourced: Maybe this helps you understand what and why i am doing this.
|
Hey.
I have a bootstrap based app already together with a custom theme, and now I wanted to ad dBooster to it to have an easier access to widgets. But due to it's urge to always register on pre-load, I need to find a way to delay this load.
Currently I am using a custom
renderScripts
method which is called int he main viewfile. How can I now add YiiBooster to that chain of CSS/JS inserts, so it inserts itself after my resources?Kind regards,
Ingwie
The text was updated successfully, but these errors were encountered: