chore(deps): replace image lazyload lib
This commit is contained in:
27
README.md
27
README.md
@ -48,29 +48,30 @@ Static assets (libraries/plugins/web-fonts) required by the [_Chirpy_][chirpy] b
|
||||
|
||||
## Versions
|
||||
|
||||
| Dependency | Version |
|
||||
| :------------------------------------------- | -------: |
|
||||
| [Bootstrap][bootstrap] | `5.3.1` |
|
||||
| [Clipboard][clipboard] | `2.0.11` |
|
||||
| [Day.js][dayjs] | `1.11.9` |
|
||||
| [Font Awesome Free][fontawesome] | `6.4.2` |
|
||||
| [jQuery][jquery] | `3.7.1` |
|
||||
| [Lazysizes][lazysizes] | `5.3.2` |
|
||||
| [Magnific Popup][magnific-popup] | `1.1.0` |
|
||||
| [Mermaid][mermaid] | `10.4.0` |
|
||||
| [Simple-Jekyll-Search][simple-jekyll-search] | `1.10.0` |
|
||||
| [Tocbot][tocbot] | `4.21.1` |
|
||||
| Dependency | Version |
|
||||
| :------------------------------------------------------- | -------: |
|
||||
| [Bootstrap][bootstrap] | `5.3.1` |
|
||||
| [Clipboard][clipboard] | `2.0.11` |
|
||||
| [Day.js][dayjs] | `1.11.9` |
|
||||
| [Font Awesome Free][fontawesome] | `6.4.2` |
|
||||
| [jQuery][jquery] | `3.7.1` |
|
||||
| [Loading-attribute-polyfill][loading-attribute-polyfill] | `2.1.1` |
|
||||
| [Magnific Popup][magnific-popup] | `1.1.0` |
|
||||
| [Mermaid][mermaid] | `10.4.0` |
|
||||
| [Simple-Jekyll-Search][simple-jekyll-search] | `1.10.0` |
|
||||
| [Tocbot][tocbot] | `4.21.1` |
|
||||
|
||||
[assets]: https://github.com/cotes2020/chirpy-static-assets
|
||||
[chirpy]: https://github.com/cotes2020/jekyll-theme-chirpy
|
||||
|
||||
<!-- deps -->
|
||||
|
||||
[bootstrap]: https://www.jsdelivr.com/package/npm/bootstrap
|
||||
[clipboard]: https://www.jsdelivr.com/package/npm/clipboard
|
||||
[dayjs]: https://www.jsdelivr.com/package/npm/dayjs
|
||||
[fontawesome]: https://fontawesome.com/download
|
||||
[jquery]: https://www.jsdelivr.com/package/npm/jquery
|
||||
[lazysizes]: https://www.jsdelivr.com/package/npm/lazysizes
|
||||
[loading-attribute-polyfill]: https://www.jsdelivr.com/package/npm/loading-attribute-polyfill
|
||||
[magnific-popup]: https://www.jsdelivr.com/package/npm/magnific-popup
|
||||
[mermaid]: https://www.jsdelivr.com/package/npm/mermaid
|
||||
[simple-jekyll-search]: https://www.jsdelivr.com/package/npm/simple-jekyll-search
|
||||
|
3
lazysizes/lazysizes.min.js
vendored
3
lazysizes/lazysizes.min.js
vendored
File diff suppressed because one or more lines are too long
8
loading-attribute-polyfill/loading-attribute-polyfill.min.css
vendored
Normal file
8
loading-attribute-polyfill/loading-attribute-polyfill.min.css
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Skipped minification because the original files appears to be already minified.
|
||||
* Original file: /npm/loading-attribute-polyfill@2.1.1/dist/loading-attribute-polyfill.css
|
||||
*
|
||||
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
|
||||
*/
|
||||
img[data-lazy-src]{will-change:contents}
|
||||
/*# sourceMappingURL=loading-attribute-polyfill.css.map */
|
8
loading-attribute-polyfill/loading-attribute-polyfill.umd.min.js
vendored
Normal file
8
loading-attribute-polyfill/loading-attribute-polyfill.umd.min.js
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Skipped minification because the original files appears to be already minified.
|
||||
* Original file: /npm/loading-attribute-polyfill@2.1.1/dist/loading-attribute-polyfill.umd.js
|
||||
*
|
||||
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
|
||||
*/
|
||||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e||self).loadingAttributePolyfill=t()}(this,function(){var e,t="loading"in HTMLImageElement.prototype,r="loading"in HTMLIFrameElement.prototype,o="onscroll"in window;function a(e){var t,r,o=[];"picture"===e.parentNode.tagName.toLowerCase()&&((r=(t=e.parentNode).querySelector("source[data-lazy-remove]"))&&t.removeChild(r),o=Array.prototype.slice.call(e.parentNode.querySelectorAll("source"))),o.push(e),o.forEach(function(e){e.hasAttribute("data-lazy-srcset")&&(e.setAttribute("srcset",e.getAttribute("data-lazy-srcset")),e.removeAttribute("data-lazy-srcset"))}),e.setAttribute("src",e.getAttribute("data-lazy-src")),e.removeAttribute("data-lazy-src")}function n(a){var n=document.createElement("div");for(n.innerHTML=function(a){var n=a.textContent||a.innerHTML,i="data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 "+((n.match(/width=['"](\d+)['"]/)||!1)[1]||1)+" "+((n.match(/height=['"](\d+)['"]/)||!1)[1]||1)+"%27%3E%3C/svg%3E";return(/<img/gim.test(n)&&!t||/<iframe/gim.test(n)&&!r)&&o&&(n=void 0===e?n.replace(/(?:\r\n|\r|\n|\t| )src=/g,' lazyload="1" src='):(n=n.replace("<source",'<source srcset="'+i+'" data-lazy-remove="true"></source>\n<source')).replace(/(?:\r\n|\r|\n|\t| )srcset=/g," data-lazy-srcset=").replace(/(?:\r\n|\r|\n|\t| )src=/g,' src="'+i+'" data-lazy-src=')),n}(a);n.firstChild;){var i=n.firstChild;if(o&&void 0!==e&&i.tagName&&(("img"===i.tagName.toLowerCase()||"picture"===i.tagName.toLowerCase())&&!t||"iframe"===i.tagName.toLowerCase()&&!r)){var c="picture"===i.tagName.toLowerCase()?n.querySelector("img"):i;e.observe(c)}a.parentNode.insertBefore(i,a)}a.parentNode.removeChild(a)}window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),"IntersectionObserver"in window&&(e=new IntersectionObserver(function(e,t){e.forEach(function(e){if(0!==e.intersectionRatio){var r=e.target;t.unobserve(r),a(r)}})},{rootMargin:"0px 0px 256px 0px",threshold:.01}));var i=function(){document.querySelectorAll("noscript.loading-lazy").forEach(function(e){return n(e)}),void 0!==window.matchMedia&&window.matchMedia("print").addListener(function(e){e.matches&&document.querySelectorAll('img[loading="lazy"][data-lazy-src],iframe[loading="lazy"][data-lazy-src]').forEach(function(e){a(e)})})};return/comp|inter/.test(document.readyState)?i():"addEventListener"in document?document.addEventListener("DOMContentLoaded",function(){i()}):document.attachEvent("onreadystatechange",function(){"complete"===document.readyState&&i()}),{prepareElement:n}});
|
||||
//# sourceMappingURL=loading-attribute-polyfill.umd.js.map
|
Reference in New Issue
Block a user