izi_lightup 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d011babd1a4cfbeea73964467576025f53ef3e3a24dd14a90693078ab245859a
|
4
|
+
data.tar.gz: 720708d4116d9e985f45ad1c5c5e658b0bf315ad9195560a46166585e7b2c199
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e54a7446886a376f41cfa00fb94786f347413a03d00e070875baf00c6483e131c7b19afa6c745faf9e9be1ca4cea4085fdf454ec5c1e845750298362708937c
|
7
|
+
data.tar.gz: 6d99793e586bff9041a8e3e8cfdfcc207e01ea9a8fe5dae56840f623841001e898edb091c6e60da9448cdde6ee7670576d65c0bfa996d3232ebaa165ff0e845b
|
@@ -16,6 +16,7 @@
|
|
16
16
|
data = __required[id]
|
17
17
|
return if data.loaded
|
18
18
|
data.callbacks ||= []
|
19
|
+
data.started = true
|
19
20
|
|
20
21
|
callback = node.onload
|
21
22
|
node.onload = -> _onload(id)
|
@@ -35,8 +36,8 @@
|
|
35
36
|
window.miniRequire ||= (key, source_url, callback = undefined) ->
|
36
37
|
id = "source_#{key.replace(/[^a-z0-9_\-]+/ig, '_')}"
|
37
38
|
|
38
|
-
# subscribe only if already attached
|
39
|
-
return _subscribe(id, callback) if __required[id]?
|
39
|
+
# subscribe only if already attached & started
|
40
|
+
return _subscribe(id, callback) if __required[id]?.started?
|
40
41
|
|
41
42
|
__required[id] = {loaded: false, callbacks: []}
|
42
43
|
# subscribe only if no source
|
data/lib/izi_lightup/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: izi_lightup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- IzikAJ
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-10-
|
11
|
+
date: 2020-10-08 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |-
|
14
14
|
Utils to speed up page load by using critical css &
|
@@ -54,7 +54,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: '0'
|
56
56
|
requirements: []
|
57
|
-
rubygems_version: 3.
|
57
|
+
rubygems_version: 3.1.2
|
58
58
|
signing_key:
|
59
59
|
specification_version: 4
|
60
60
|
summary: Izi Lightup
|