Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dll.js

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dll.js - npm Package Compare versions

Comparing version 1.5.3 to 1.5.4

dist/dll.esm.js

2

dist/dll.min.js

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

// DLL.js v1.5.2 | 2020 © thednp | MIT-License
// DLL.js v1.5.4 | 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.3",
"version": "1.5.4",
"description": "Double Lazy Load for Images, Videos and Background Images.",
"main": "dist/dll.min.js",
"module": "dist/dll-esm.min.js",
"files": [
"dist/{css,js}/*.{css,js,map}"
"module": "dist/dll-esm.js",
"jsnext": "src/dll.js",
"files" :[
"dist/*.{js,map}",
"src/*.{js,map}"
],

@@ -10,0 +12,0 @@ "scripts": {

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc