Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -645,12 +645,12 @@ spf.style = {};

/**
* Loads a stylesheet asynchronously and defines a name to use for dependency
* management and unloading. See {@link spf.script.unload} to remove previously
* management and unloading. See {@link spf.style.unload} to remove previously
* loaded stylesheets.
*
* - Subsequent calls to load the same URL will not reload the stylesheet. To
* reload a stylesheet, unload it first with {@link spf.script.unload}. To
* unconditionally load a stylesheet, see {@link spf.script.get}.
* reload a stylesheet, unload it first with {@link spf.style.unload}. To
* unconditionally load a stylesheet, see {@link spf.style.get}.
*
* - A name must be specified to identify the same stylesheet at different URLs.
* (For example, "main-A.css" and "main-B.css" are both "main".) When a name
Expand All @@ -673,7 +673,7 @@ spf.style.load = function(url, name, opt_fn) {};


/**
* Unloads a stylesheet identified by name. See {@link spf.script.load}.
* Unloads a stylesheet identified by name. See {@link spf.style.load}.
*
* @param {string} name Name of the stylesheet.
*/
Expand All @@ -684,7 +684,7 @@ spf.style.unload = function(name) {};
* Unconditionally loads a stylesheet by dynamically creating an element and
* appending it to the document without regard for whether it has been loaded
* before. A stylesheet directly loaded by this method cannot be unloaded by
* name. Compare to {@link spf.script.load}.
* name. Compare to {@link spf.style.load}.
*
* @param {string} url URL of the stylesheet to load.
*/
Expand All @@ -704,7 +704,7 @@ spf.style.path = function(paths) {};
/**
* Prefetchs one or more stylesheets; the stylesheets will be requested but not
* loaded. Use to prime the browser cache and avoid needing to request the
* stylesheet when subsequently loaded. See {@link spf.script.load}.
* stylesheet when subsequently loaded. See {@link spf.style.load}.
*
* @param {string|Array.<string>} urls One or more stylesheet URLs to prefetch.
*/
Expand Down