commit: 63f0e5fac14adcb56c7222ca17ebb2b7d7c48509
parent: c99db83a274c74e95e999e514cb18574744a244d
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Fri, 18 Sep 2020 01:57:25 +0200
sorttable: Use defer="" on script
Diffstat:
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/sorttable/index.html b/sorttable/index.html
@@ -3,8 +3,9 @@
<head>
<meta charset="utf-8"/>
<title>SortTable — Web demos</title>
- <link rel="stylesheet" href="../common.css">
+ <link rel="stylesheet" href="../common.css"/>
<link rel="stylesheet" href="sorttable.css"/>
+ <script defer="" src="sorttable.js"></script>
</head>
<body>
<!-- http://knowyourmeme.com/memes/born-to-die-world-is-a-fuck-kill-em-all-1989-i-am-trash-man-410757864530-dead-cops -->
@@ -25,8 +26,7 @@ I am trash main()
</ul>
<h2>Usage</h2>
<ol>
- <li>Add <code><script src="sorttable.js"></script></code> at the end of your <abbr title="HyperText Markup Language">HTML</abbr> pages</li>
- <li>Add <code><link rel="stylesheet" href="sorttable.css"/></code> to the <code>head</code> of your <abbr title="HyperText Markup Language">HTML</abbr> pages</li>
+ <li>Add <code><link rel="stylesheet" href="sorttable.css"/></code> and <code><script defer="" src="sorttable.js"></script></code> to the <code>head</code> of your <abbr title="HyperText Markup Language">HTML</abbr> pages</li>
<li>Tag the <code>table</code>s that you want to be sorted with a <code>class="sortable"</code></li>
</ol>
<p>To override a cell(<code>td</code>) value ou can pass the well used <code>data-value</code> attribute to it. Also please note that the sorting may not be <a href="https://en.wikipedia.org/wiki/Sorting_algorithm#Stability">stable</a>.</p>
@@ -54,8 +54,7 @@ I am trash main()
<tr><td><a href="sorttable.css">sorttable.css</a></td><td data-value="0468">468</td><td data-value="0170">170</td></tr>
</tbody>
</table>
- <script src="sorttable.js"></script>
</main>
- <footer>Copyright 2018 Haelwenn (lanodan) Monnier. Distributed under the <a href="http://creativecommons.org/licenses/by/4.0/">CC-BY 4.0 License</a>. Obviously, this demoset agrees that <a href="http://simpleweb.iscute.ovh/">simple web is cute</a>.</footer>
+ <footer>Copyright 2018-2020 Haelwenn (lanodan) Monnier. Distributed under the <a href="http://creativecommons.org/licenses/by/4.0/">CC-BY 4.0 License</a>. Obviously, this demoset agrees that <a href="http://simpleweb.iscute.ovh/">simple web is cute</a>.</footer>
</body>
<html>