Loading snowboard.extras.css #514
-
I am developing using Snowboard and notice that snowboard.extras.css is not loaded if WinterCMS is installed in a subdirectory of the webroot. StylesheetLoader.js seems to assume that the css is reachable from the webroot. It contains the code:
where this assumption is made. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
@wverhoogt if you load in the I think the reason I had to do this was because there's no way for us to know the base URL for the site directly in JavaScript (we'd have to pass it through somehow from the PHP side), so this was a safe assumption, but I'll make a note of it as an issue to look at. |
Beta Was this translation helpful? Give feedback.
@wverhoogt if you load in the
snowboard.extras.css
file manually in your template, then that StylesheetLoader will see that it's already loaded and won't try to inject it.I think the reason I had to do this was because there's no way for us to know the base URL for the site directly in JavaScript (we'd have to pass it through somehow from the PHP side), so this was a safe assumption, but I'll make a note of it as an issue to look at.