diff options
author | Sarah German <sgerman@gitlab.com> | 2022-05-18 23:26:24 +0300 |
---|---|---|
committer | Sarah German <sgerman@gitlab.com> | 2022-05-18 23:26:24 +0300 |
commit | 44192517a25b7a2df88df8e02a2a96436bb6b844 (patch) | |
tree | bc1515f15a03c338113237a2b86ba0fa360973fa | |
parent | 2e1563b0cf3d1302c704d34a14db35080a33541a (diff) |
Remove unneeded polyfillsremove-polyfills
Supported browsers no longer need these.
-rw-r--r-- | content/assets/javascripts/closest-polyfill.js | 19 | ||||
-rw-r--r-- | layouts/head.html | 2 |
2 files changed, 0 insertions, 21 deletions
diff --git a/content/assets/javascripts/closest-polyfill.js b/content/assets/javascripts/closest-polyfill.js deleted file mode 100644 index 6a10a113..00000000 --- a/content/assets/javascripts/closest-polyfill.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * Polyfill for browsers that do not support Element.closest() - */ -if (!Element.prototype.matches) { - Element.prototype.matches = Element.prototype.msMatchesSelector || - Element.prototype.webkitMatchesSelector; -} - -if (!Element.prototype.closest) { - Element.prototype.closest = function(s) { - var el = this; - - do { - if (el.matches(s)) return el; - el = el.parentElement || el.parentNode; - } while (el !== null && el.nodeType === 1); - return null; - }; -} diff --git a/layouts/head.html b/layouts/head.html index 55c42b31..c36d15ad 100644 --- a/layouts/head.html +++ b/layouts/head.html @@ -73,8 +73,6 @@ <meta name="google-site-verification" content="AdhNW99_pjMo7lAMGPvA7jm15stGaZQMYg1AS_h25Kk" /> <!-- Clayton Cornell --> <% end %> -<script async src="https://cdn.jsdelivr.net/npm/eligrey-classlist-js-polyfill@1.2.20180112/classList.min.js" integrity="sha256-idm3p7jl0XwymUpIccg6WI96tQmoDR/5DWEsnPnxYU4=" crossorigin="anonymous"></script> -<script async src="<%= @items['/assets/javascripts/closest-polyfill.*'].path %>"></script> <!-- you don't need to keep this, but it's cool for stats! --> <meta name="generator" content="Nanoc <%= Nanoc::VERSION %>"> <!-- Algolia Searching from the URL bar https://www.algolia.com/doc/tutorials/search-ui/ux-patterns/search-from-the-url-bar/ --> |