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

Add options to suppress loading of JS libraries #45

Closed
stephanrauh opened this Issue Jun 27, 2015 · 2 comments

Comments

Projects
None yet
1 participant
@stephanrauh
Owner

stephanrauh commented Jun 27, 2015

AngularFaces checks whether third-party libraries such as AngularJS and jQuery are included by the current JSF page. If not, it adds the dependency itself. Unfortunately, this check fails if the third-party files are renamed or merged into a single file containing every JS dependency. This is a common scenario, so AngularFaces needs an option to suppress to automatic include of AngularJS and jQuery.

@stephanrauh stephanrauh added this to the AngularFaces 2.1.7 milestone Jun 27, 2015

@stephanrauh

This comment has been minimized.

Show comment
Hide comment
@stephanrauh

stephanrauh Jun 28, 2015

Owner

Now it's possible to control each file individually:

    <context-param>
        <param-name>AngularFaces.includeAngularJS</param-name>
        <param-value>false</param-value>
    </context-param>
    <context-param>
        <param-name>AngularFaces.includeJQuery</param-name>
        <param-value>false</param-value>
    </context-param>
    <context-param>
        <param-name>AngularFaces.includeJQueryUI</param-name>
        <param-value>false</param-value>
    </context-param>
    <context-param>
        <param-name>AngularFaces.includeAngularMessages</param-name>
        <param-value>false</param-value>
    </context-param>
Owner

stephanrauh commented Jun 28, 2015

Now it's possible to control each file individually:

    <context-param>
        <param-name>AngularFaces.includeAngularJS</param-name>
        <param-value>false</param-value>
    </context-param>
    <context-param>
        <param-name>AngularFaces.includeJQuery</param-name>
        <param-value>false</param-value>
    </context-param>
    <context-param>
        <param-name>AngularFaces.includeJQueryUI</param-name>
        <param-value>false</param-value>
    </context-param>
    <context-param>
        <param-name>AngularFaces.includeAngularMessages</param-name>
        <param-value>false</param-value>
    </context-param>

@stephanrauh stephanrauh changed the title from Add options to supress loading of JS libraries to Add options to suppress loading of JS libraries Jun 28, 2015

@stephanrauh stephanrauh self-assigned this Jun 28, 2015

@stephanrauh

This comment has been minimized.

Show comment
Hide comment
Owner

stephanrauh commented Jun 28, 2015

done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment