mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 12:09:26 +00:00
Updated docs.
This commit is contained in:
23
index.html
23
index.html
@@ -31,7 +31,7 @@
|
||||
<p>
|
||||
Shoelace is highly customizable through CSS variables. It doesn’t require Less, Sass, or any
|
||||
preprocessing at all. The minified version is only
|
||||
<span data-minifiedSize>29KB</span> and much smaller when gzipped.
|
||||
<span data-minifiedSize>29.8KB</span> and much smaller when gzipped.
|
||||
</p>
|
||||
<p>
|
||||
Just link to <code>shoelace.css</code> and add customizations to your stylesheet.
|
||||
@@ -112,6 +112,27 @@
|
||||
<pre>
|
||||
<link rel="stylesheet" href="https://cdn.shoelace.style/<span data-version>1.0.0-beta4</span>/shoelace.css">
|
||||
</pre>
|
||||
<p>
|
||||
If you decide to use a CDN, consider speeding up performance by at least adding a <code>preconnect</code> resource hint to give the browser a head start on connecting to the CDN server. You can do this by adding a <code><link></code> HTML element in the head like so:
|
||||
</p>
|
||||
<pre>
|
||||
<link rel="preconnect" href="https://cdn.shoelace.style" crossorigin>
|
||||
</pre>
|
||||
<p>
|
||||
Though if you really want to supercharge loading of Shoelace from a CDN, consider using a <code>preload</code> <a href="https://www.w3.org/TR/resource-hints/" rel="noopener">resource hint</a> instead:
|
||||
</p>
|
||||
<pre>
|
||||
<link rel="preload" as="style" href="https://cdn.shoelace.style/<span data-version>1.0.0-beta4</span>/shoelace.css" crossorigin>
|
||||
</pre>
|
||||
<p>
|
||||
These can also be expressed in HTTP headers, which may be slightly more performant since the hint will be discovered earlier in the HTTP response:
|
||||
</p>
|
||||
<pre>
|
||||
Link: <https://cdn.shoelace.style/<span data-version>1.0.0-beta4</span>/shoelace.css>; rel=preload; as=style; crossorigin
|
||||
</pre>
|
||||
<p>
|
||||
Whether it's <code>preconnect</code> or <code>preload</code>, just make sure you pick <em>one</em>, because you don't need both.
|
||||
</p>
|
||||
<p class="text-right">
|
||||
<a href="https://www.keycdn.com/">
|
||||
<img src="https://logos.keycdn.com/keycdn-logo.svg" alt="KeyCDN logo" class="width-20">
|
||||
|
||||
Reference in New Issue
Block a user