@jaisocx/responsive-sizes 1.3.3 → 1.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.preview.html +12 -7
  2. package/package.json +2 -2
@@ -54,6 +54,7 @@
54
54
  charset="utf-8"
55
55
  href="node_modules/@jaisocx/css-clean-start-2/MediaAndStyles/CssCleanStart_2_main_resolved.css"
56
56
  href-fallback="../css-clean-start-2/MediaAndStyles/CssCleanStart_2_main_resolved.css"
57
+ onload="javascript: ( () => { onDOMContentLoaded(); } )();"
57
58
  onerror="javascript: ( () => { console.log( this ); this.href = this.getAttribute( 'href-fallback' ); this.onerror = null; } )();"
58
59
  />
59
60
 
@@ -176,13 +177,7 @@
176
177
  addResizeEventHandler();
177
178
  }
178
179
 
179
- // Call the function to load remote data when the DOM is fully loaded
180
- // This ensures that the function is called after the HTML content is loaded
181
- // and the DOM is ready for manipulation
182
- document.addEventListener (
183
- "DOMContentLoaded",
184
- () => {
185
-
180
+ function onDOMContentLoaded() {
186
181
  globResponsiveSizesConstants = new ResponsiveSizesConstants();
187
182
  globResponsiveSizesInstance = new ResponsiveSizes();
188
183
 
@@ -194,6 +189,16 @@
194
189
 
195
190
  let recalcMediaQueriesVariables_true = true;
196
191
  responsiveSizeNameTestJson ( recalcMediaQueriesVariables_true );
192
+ }
193
+
194
+ // Call the function to load remote data when the DOM is fully loaded
195
+ // This ensures that the function is called after the HTML content is loaded
196
+ // and the DOM is ready for manipulation
197
+ document.addEventListener (
198
+ "DOMContentLoaded",
199
+ () => {
200
+
201
+ onDOMContentLoaded();
197
202
 
198
203
  }
199
204
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jaisocx/responsive-sizes",
3
- "version": "1.3.3",
3
+ "version": "1.3.5",
4
4
  "author": "Jaisocx",
5
5
  "keywords": [],
6
6
  "private": false,
@@ -23,7 +23,7 @@
23
23
  "README.md"
24
24
  ],
25
25
  "optionalDependencies": {
26
- "@jaisocx/css-clean-start-2": "~1.2.3"
26
+ "@jaisocx/css-clean-start-2": "~1.2.4"
27
27
  },
28
28
  "publishConfig": {
29
29
  "access": "public"