New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

lockandload

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lockandload - npm Package Compare versions

Comparing version 2.1.10 to 2.1.18

21

lockandload_headready.js
!function(W,D,E,P)
{ "use strict";
function n(e,a,v,r,u,p,k)
function n(e,a,v,r,u,p,x,k)
{ k=D.createElement(e); if(p) k.onload=function(){ E(p, 1); };
k[a]=v; k[r]=u; D.head.appendChild(k); }
k[a]=v; k[r]=u; x||(k.crossOrigin=""); D.head.appendChild(k); }
function css(u,p){ n("link","rel","stylesheet","href",u,p); }
function js(u,a){ n("script","async",a,"src",u); }
function js(u,a,x){ n("script","async",a,"src",u,0,x); }
function jsa(a,p){ P[a]=p; }

@@ -32,3 +32,3 @@ /*

** Add medium priority Javascript files here.
** Typically jquery should be loaded here, if needed:
** Typically jQuery should be loaded here, if needed:
**

@@ -42,6 +42,6 @@ **require(["domready"], function() {

** High priority Javascript files should use direct script entries instead.
** If you do not use jquery, take out the jquery dependency from the line
** If you do not use jQuery, take out the jQuery dependency from the line
** below:
*/
require(["domready", "jquery"], function(domready) {
require(["domready", "jQuery"], function(domready) {
/*var t="//cdn.remixml.org/js/";

@@ -59,3 +59,3 @@ **js(t+"sequentialload.js"); // Legacy sequential low prio loads

*/
js("//www.googletagmanager.com/gtm.js?id=GTM-xxxxxx");
js("//www.googletagmanager.com/gtm.js?id=GTM-xxxxxx", "async", 1);
}, 2048);

@@ -70,3 +70,3 @@ /*

** to the scripts being run. If you do not provide an argument, they
** will receive $(document) (the jquery whole document object/scope).
** will receive $(document) (the jQuery whole document object/scope).
*/

@@ -79,2 +79,4 @@ domready(1);

*/
E("jQuery", ["jquery"], function($, i)
{ W.jQuery=W.$=$; while (i=E.Q.shift()) $(i); return $; });
E("require", ["module"], function(R)

@@ -86,5 +88,4 @@ { function r(d,f){ return f?E(1,d,f):R[d]; } r.undef=function(n){ R[n]=0; };

{ if(E.S[0]||t==1)
{ while (i=E.Q.shift()) i();
t=!(t==1?E.S.shift():t)&&R.jquery?$(D):t;
{ t=!(t==1?E.S.shift():t)&&R.jquery?$(D):t;
for (i=0; i<E.S.length; E.S[i++](t)); } }; }); };
}(window,document,define,{});
{
"name": "lockandload",
"version": "2.1.10",
"version": "2.1.18",
"description": "Minimalist AMD-compliant Javascript and CSS loader",

@@ -5,0 +5,0 @@ "main": "index.html",

@@ -57,3 +57,3 @@ <h1>lockandload AMD-loader</h1>

of the way).
- Legacy support for $(...) jquery riddled synchronous code.
- Legacy support for $(...) jQuery riddled synchronous code.
- Legacy support for loading synchronous Javascript.

@@ -195,5 +195,7 @@ - Single-page-app support using $$(...) page refresh callbacks.

`id` dependency.
- `js(url, "async"?)`<br />
Loads Javascript file, if the second optional argument `"async"` is
provided, the load will be asynchronous.
- `js(url, "async"?, noCORS?)`<br />
Loads Javascript file. If the second optional argument `"async"` is
provided, the load will be asynchronous. If the third optional
argument is true, the script will be loaded without `crossOrigin`
parameter (typically needed to load GTM).
- `jsa(alias, path)`<br />

@@ -233,5 +235,4 @@ Define aliases for javascript file paths to be referenced through

The standard headready-script contains a dependency on `domready` and
`jquery` which finally runs `domready(1)` which will run all the
registered delayed functions the first time.
N.B. Use the `jQuery` dependency instead of plain `jquery` to avoid a race
for an undefined `window.$` object.

@@ -284,3 +285,3 @@ ### SPA (Single Page App) support

Other loaders:
Other AMD-loaders:
- [eeMD](https://github.com/MaxMotovilov/eeMD).

@@ -287,0 +288,0 @@ - [Curiosity-Driven](https://curiosity-driven.org/minimal-loader).

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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