java.lang.Object
com.aoapps.web.resources.registry.Resource<Script>
com.aoapps.web.resources.registry.Script
All Implemented Interfaces:
Serializable, Comparable<Script>

public final class Script extends Resource<Script> implements Comparable<Script>
A script is identified by URI, but has other constraints. Including:
  1. an async attribute
  2. an defer attribute
  3. an optional crossorigin attribute
  4. TODO: Add more attributes as-needed

Optimizers should be careful to only group stylesheets that have equivalent constraints.

TODO: Support inline scripts without URI (defer and async not allowed for inline).

TODO: Support modules.

Author:
AO Industries, Inc.
See Also: