Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • jQuery, jQuery UI
  • Bootstrap (though see Bootstrap below for use in portlets)

Resources Preferred way to access resources from a CDN should use the resourceURL tag library to load them rather than accessing the CDNs directly.  This allows the URL to be modified to a non-minified version when JS aggregation is disabled or running in off-line mode (though the resourceURL tag currently does not do this).  E.g. access like:

...

is to put them in a skin.xml file and use the rs:aggregatedResources tag so you get the non-minified versions when desired.  

Code Block
skin.xml:
 
<resources xmlns="http://www.jasig.org/uportal/web/skin"  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:schemaLocation="http://www.jasig.org/uportal/web/skin https://source.jasig.org/schemas/resource-server/skin-configuration/skin-configuration-v1.2.xsd">


    <js included="plain">//code.jquery.com/jquery-1.10.2.js</js>
    <js included="aggregated">//code.jquery.com/jquery-1.10.2.min.js</js>
    <js included="plain">//code.jquery.com/ui/1.10.3/jquery-ui.js</js>
    <js included="aggregated">//code.jquery.com/ui/1.10.3/jquery-ui.min.js</js>
</resources>
 
JSP file:
 
<rs:aggregatedResources path="skin.xml"/>

The alternative is to load them from the CDNs directly as you would in any webapp.

Code Block
titlenon-preferred way to access CDN content
<script src="//code.jquery.com/jquery-1.10.2.min.js'/>" type="text/javascript"></script>

...