Socket
Socket
Sign inDemoInstall

dll.js

Package Overview
Dependencies
1
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.5.1 to 1.5.2

2

dist/dll.min.js

@@ -1,2 +0,2 @@

// DLL.js v1.5.1 | 2020 © thednp | MIT-License
// DLL.js v1.5.2 | 2020 © thednp | MIT-License
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).dll=e()}(this,(function(){"use strict";function t(t,e,n,r){!function(t,e,n,r){r=r||!1,t.addEventListener(e,n,r)}(t,e,(function o(c){c.target===t&&(n(c),function(t,e,n,r){r=r||!1,t.removeEventListener(e,n,r)}(t,e,o,r))}),r)}function e(e,n){var r="SOURCE"===e.tagName,o=r?"loadstart":"load",c=r?document.createElement("VIDEO"):0,u=r?document.createElement("SOURCE"):new Image,a=r?c:u,d=e.getAttribute("data-src");t(a,o,(function(){"IMG"===e.tagName?e.src=d:"SOURCE"===e.tagName?(e.src=d,e.parentNode.load()):e.style.backgroundImage='url("'+d+'")',e.removeAttribute("data-src"),n&&n()})),u.src=d,c&&c.appendChild(u)}function n(t,n){!function(t,e){try{t()}catch(t){console.error(e+": "+t)}}((function(){var r,o,c;r=t,c=o&&o instanceof Element?o:document,t=r instanceof Element?r:c.querySelector(r),n="function"==typeof n?n:null;var u=function(t){var e,n=[],r=t.querySelectorAll("[data-src]"),o=t?t.getAttribute("data-src"):null;return o&&!r?e=[t]:!o&&r?e=r:o&&r?(e=r,n.unshift(t)):o||r||(e=document.querySelectorAll("[data-src]")),Array.from(e).map((function(t){return n.push(t)})),n}(t);((t?t.getAttribute("data-src"):null)||null!==t.querySelector("[data-src]"))&&u.map((function(t,r){r===u.length-1&&n?e(t,n):e(t)}))}),"DLL.js:")}function r(){Array.from(document.querySelectorAll("[data-src]")).map((function(t){return new n(t)}))}return document.body?r():t(document,"DOMContentLoaded",r),n}));
{
"name": "dll.js",
"version": "1.5.1",
"version": "1.5.2",
"description": "Double Lazy Load for Images, Videos and Background Images.",
"main": "dist/dll.min.js",
"module": "src/dll.js",
"module": "dist/dll-esm.min.js",
"files": [
"dist/{css,js}/*.{css,js,map}"
],
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "npm run build-umd && npm run build-umd-min",
"build": "npm-run-all --parallel build-*",
"build-esm": "rollup --environment FORMAT:esm,MIN:false -c",
"build-esm-min": "rollup --environment FORMAT:esm,MIN:true -c",
"build-umd": "rollup --environment FORMAT:umd,MIN:false -c",

@@ -39,2 +44,3 @@ "build-umd-min": "rollup --environment FORMAT:umd,MIN:true -c"

"@rollup/plugin-node-resolve": "^7.1.0",
"npm-run-all": "^4.1.5",
"rollup": "^1.32.1",

@@ -41,0 +47,0 @@ "rollup-plugin-cleanup": "^3.1.1",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc