Versions Compared

Key

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

...

Content Distribution Networks (CDNs)

Info

Hold off on using CDN URLs until

Jira Legacy
serverJASIG Issue Tracker
serverId76221f40-4501-3df1-8578-6c87908cbdf7
keyRESSERV-82
is implemented. Otherwise it becomes a problem when you are attempting to work on uPortal or do demos in offline mode.

 

Some popular CSS files are hosted on CDNs.  To decrease load times (browser accesses a different domain) and potentially improve performance (a different application may have downloaded the CSS file from the CDN and have it in the browser's cache), a CDN can be used instead of obtaining the file from the Resource Server.  The CDN must support HTTPS to access the library so user's don't get security warnings.

...

Tip
titleCSS aggregation tip

On your local and dev instance, you can permanently disable JavaScript and CSS aggregation by adding to your .bash_profile:

export JAVA_OPTS="$JAVA_OPTS -Dorg.jasig.resourceserver.utils.aggr.aggregated_theme=false”
Also see UE Development Tips
Info
iconfalse
titleAdditional References

JavaScript Best Practices

JSP Best Practices