-
Notifications
You must be signed in to change notification settings - Fork 5
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
In newsboxes the plugin CSS is missing #15
Comments
That's a general issue; anything that is written to |
It will probably be best to include the CSS unconditionally. |
We cannot put the |
Directly at the plugin call (above), yes that could work well. |
Additionally, it would be necessary to prevent the CSS from being loaded multiple times (on the normal page and in the newsboxes). |
combine plugin stylesheet and the optional user stylesheet |
In my fork I once implemented a solution that embeds the CSS directly before the plugin. |
Why two counters when they both count the same? |
Two counters because they are two different things in two different places. If it were only one, the count would be wrong.
With multiple calls (in the page and in newsboxes) the multiple call of CSS and JS must be prevented - hence the counting. |
This is now part of PR #12 which is unlikely to be intended. Thus, always create new branches for unrelated improvements/fixes, so they don't interfere. (No need to change anything now; whoever is going to merge that PR can easily skip the second commit.) |
Sorry, but that was the "magic" Github - I didn't want that. |
It does, with XH_afterFinalCleanUp, see also Swiper_XH. |
Ah, right! Still, there should be better (i.e. cleaner) support by the core. It's super common to have the need for this nowadays (since |
https://cmsimpleforum.com/viewtopic.php?f=16&p=83801#p83800
The text was updated successfully, but these errors were encountered: