aboutsummaryrefslogtreecommitdiff
path: root/content/posts
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2022-09-18 09:42:19 -0400
committerPaul Duncan <pabs@pablotron.org>2022-09-18 09:42:19 -0400
commit374abc2c8015b9970062efa181307d20fe06eee4 (patch)
treefd366ed294c9b5b9742145b0956d9523d0fb99ef /content/posts
parent3d2cb7c90de1efd663bf2d23205c6b130be07e0d (diff)
downloadpablotron.org-374abc2c8015b9970062efa181307d20fe06eee4.tar.bz2
pablotron.org-374abc2c8015b9970062efa181307d20fe06eee4.zip
add content/posts/2022-09-18-jqueries.md
Diffstat (limited to 'content/posts')
-rw-r--r--content/posts/2022-09-18-jqueries.md61
1 files changed, 61 insertions, 0 deletions
diff --git a/content/posts/2022-09-18-jqueries.md b/content/posts/2022-09-18-jqueries.md
new file mode 100644
index 0000000..fc60e63
--- /dev/null
+++ b/content/posts/2022-09-18-jqueries.md
@@ -0,0 +1,61 @@
+---
+slug: jqueries
+title: "jQueries"
+date: "2022-09-18T06:50:05-04:00"
+draft: true
+
+pics:
+ jqueries:
+ css: "image"
+ tip: "jQueries: One page, every jQuery."
+ sources:
+ - "/files/posts/jqueries/jqueries.webp"
+ - src: "/files/posts/jqueries/jqueries.png"
+ width: 800
+ height: 355
+---
+Some people dislike [jQuery][] because it isn't really needed for
+modern browsers (see [You Might Not Need jQuery][]).
+
+Many older sites embed multiple versions of [jQuery][], often as a
+[transitive dependency][].
+
+I thought "wouldn't it be funny if there was a page that loaded *all*
+versions of [jQuery][]?".
+
+Behold:
+
+[{{< pe-figure "jqueries" >}}][jqueries]
+
+Notes:
+
+* Embeds every version of [jQuery][] from 1.2 to 3.6.1, including the
+ slim builds.
+* Each version of [jQuery][] animates it's own row. See the [unminified
+ `script.js`][script.js] for details.
+* You may have trouble hosting [jQueries][] if you have a restrictive
+ [`Content-Security-Policy`][csp] ([like mine][min-csp]). In
+ particular, versions of [jQuery][] older than 1.4.0 will fail
+ to load.
+* Deliberately serves up old versions of [jQuery][] with known security
+ vulnerabilities. Be careful where you host this.
+
+Source code, build instructions, and additional details are available in
+the [GitHub repository][repo].
+
+[jquery]: https://jquery.com/
+ "jQuery"
+[transitive dependency]: https://en.wikipedia.org/wiki/Transitive_dependency
+ "Dependency that is depended on indirectly by another dependency."
+[jqueries]: https://pablotron.github.io/jqueries/
+ "jQueries: A page which uses (almost) every version of jQuery"
+[you might not need jquery]: https://youmightnotneedjquery.com/
+ "You might not need jQuery."
+[script.js]: https://github.com/pablotron/jqueries/blob/main/public/js/script.js
+ "Unminified version of script.js."
+[csp]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy
+ "Content-Security-Policy HTTP header."
+[min-csp]: {{< relref "posts/2021-10-25-the-nuclear-option-no-more-unsafe-inline.md" >}}
+ "Post about minimal Content-Security-Policy header on this site."
+[repo]: https://github.com/pablotron/jqueries
+ "jQueries GitHub repository."