-
Notifications
You must be signed in to change notification settings - Fork 102
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
Ability to exclude Bootstrap/jQuery CSS/JS/Image files? #197
Comments
This issue is partially covered by #121. |
I fail to see how. I want the bootstrap and jQuery CSS and JS files included within the Bootsfaces distribution to be excluded ENTIRELY so that I can instead load them from a CDN or other source. The order of the CSS files isn't really an issue. I want them gone altogether so I can reference them from a different URL. |
Before starting to implement your feature request, let me summary what we already have:
What we didn't implement yet:
|
Added three context parameters and a jQueryUI detection:
|
<context-param>
<param-name>net.bootsfaces.get_jquery_from_cdn</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>net.bootsfaces.get_jqueryui_from_cdn</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>net.bootsfaces.get_bootstrap_from_cdn</param-name>
<param-value>true</param-value>
</context-param> |
I've uploaded a new developer snapshot. @sdnakhla , would you mind to test it and tell me if my solution suits your needs? |
Absolutely. Where/how do I go about downloading it? I'm using Maven to build my project.
I've uploaded a new developer snapshot. @sdnakhla , would you mind to test it and tell me if my solution suits your needs?— |
Oh, sorry, I forgot to mention I described this in issue #151. For the sake of convenience, I'll copy the text here: Important: Do not use these snapshots in production! https://oss.sonatype.org/content/repositories/snapshots/net/bootsfaces/bootsfaces/0.8.0-SNAPSHOT/ You can access this in your pom.xml after adding a new repository: <repositories>
<repository>
<id>central</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<releases><enabled>true</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
</repositories> The download coordinates of the snapshot version are: <dependency>
<groupId>net.bootsfaces</groupId>
<artifactId>bootsfaces</artifactId>
<version>0.8.0-SNAPSHOT</version>
<scope>compile</scope>
</dependency> |
I tried it and everything looks good. Thanks so much for including this! |
Great! Actually, we've added a few lines of CSS code to the original CSS files, so chances are you'll encounter minor difficulties. For instance, the date picker may open the date picker window in the background where it's invisible. |
ToDo left: document the new feature. |
Are all the parameters documented somewhere? If they are not I think they should - they seem very helpful to me. Hope we get a 0.8.0.final soon :) |
I've just documented the parameters (and several others): http://bootsfaces.net/Staging/layout/resourcemanagement.jsf. |
I'd love to see the ability (if it doesn't already exist in Bootsfaces) to exclude the actual Bootstrap/jQuery libraries themselves when rendering the page. That is, I'd like to be able to exclude the CSS, JS, and images files themselves and get them from an alternative URL. We make use of a CDN to improve load times on our pages. If we could tell Bootsfaces not to load these files that would improve our page rendering time and we could just get these files from our CDN.
Is there a context-param value we can set to achieve this?
The text was updated successfully, but these errors were encountered: