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

domready

Package Overview
Dependencies
Maintainers
0
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

domready - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

2

package.json
{
"name": "domready",
"description": "bullet proof DOM ready method",
"version": "0.2.2",
"version": "0.2.3",
"homepage": "https://github.com/ded/domready",

@@ -6,0 +6,0 @@ "authors": ["Dustin Diaz <@ded>"],

!function (context, doc) {
var fns = [], ol, f = false,
testEl = doc.createElement('a'),
testEl = doc.documentElement,
hack = testEl.doScroll,

@@ -27,3 +27,3 @@ domContentLoaded = 'DOMContentLoaded',

var domReady = hack ?
context['domReady'] = hack ?
function (fn) {

@@ -45,4 +45,2 @@ self != top ?

context['domReady'] = domReady;
}(this, document);

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

!function(a,b){function l(a){k=1;while(a=c.shift())a()}var c=[],d,e=!1,f=b.createElement("a"),g=f.doScroll,h="DOMContentLoaded",i="addEventListener",j="onreadystatechange",k=/^loade|c/.test(b.readyState);b[i]&&b[i](h,function a(){b.removeEventListener(h,a,e),l()},e),g&&b.attachEvent(j,d=function a(){/^c/.test(b.readyState)&&(b.detachEvent(j,a),l())});var m=g?function(a){self!=top?k?a():c.push(a):function(){try{f.doScroll("left")}catch(b){return setTimeout(function(){m(a)},50)}a()}()}:function(a){k?a():c.push(a)};a.domReady=m}(this,document)
!function(a,b){function l(a){k=1;while(a=c.shift())a()}var c=[],d,e=!1,f=b.documentElement,g=f.doScroll,h="DOMContentLoaded",i="addEventListener",j="onreadystatechange",k=/^loade|c/.test(b.readyState);b[i]&&b[i](h,function a(){b.removeEventListener(h,a,e),l()},e),g&&b.attachEvent(j,d=function a(){/^c/.test(b.readyState)&&(b.detachEvent(j,a),l())}),a.domReady=g?function(a){self!=top?k?a():c.push(a):function(){try{f.doScroll("left")}catch(b){return setTimeout(function(){domReady(a)},50)}a()}()}:function(a){k?a():c.push(a)}}(this,document)
!function (context, doc) {
var fns = [], ol, f = false,
testEl = doc.createElement('a'),
testEl = doc.documentElement,
hack = testEl.doScroll,

@@ -27,3 +27,3 @@ domContentLoaded = 'DOMContentLoaded',

var domReady = hack ?
context['domReady'] = hack ?
function (fn) {

@@ -45,4 +45,2 @@ self != top ?

context['domReady'] = domReady;
}(this, document);
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