@jaisocx/css-clean-start-2 1.2.4 → 1.2.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jaisocx/css-clean-start-2",
3
- "version": "1.2.4",
3
+ "version": "1.2.5",
4
4
  "description": "Css sites resetting default styles with main.css of few hundereds css code lines, and the very nice infrastructure for responsive sites bugfixing and fine-tuning",
5
5
  "author": "Jaisocx Company",
6
6
  "keywords": [
@@ -27,7 +27,7 @@
27
27
  ],
28
28
  "optionalDependencies": {
29
29
  "@jaisocx/media_tools_fonts_base": "~1.0.5",
30
- "@jaisocx/responsive-sizes": "~1.3.3"
30
+ "@jaisocx/responsive-sizes": "~1.3.4"
31
31
  },
32
32
  "private": false,
33
33
  "publishConfig": {
@@ -175,13 +175,7 @@
175
175
  addResizeEventHandler();
176
176
  }
177
177
 
178
- // Call the function to load remote data when the DOM is fully loaded
179
- // This ensures that the function is called after the HTML content is loaded
180
- // and the DOM is ready for manipulation
181
- document.addEventListener (
182
- "DOMContentLoaded",
183
- () => {
184
-
178
+ function onDOMContentLoaded() {
185
179
  globResponsiveSizesConstants = new ResponsiveSizesConstants();
186
180
  globResponsiveSizesInstance = new ResponsiveSizes();
187
181
 
@@ -193,6 +187,16 @@
193
187
 
194
188
  let recalcMediaQueriesVariables_true = true;
195
189
  responsiveSizeNameTestJson ( recalcMediaQueriesVariables_true );
190
+ }
191
+
192
+ // Call the function to load remote data when the DOM is fully loaded
193
+ // This ensures that the function is called after the HTML content is loaded
194
+ // and the DOM is ready for manipulation
195
+ document.addEventListener (
196
+ "DOMContentLoaded",
197
+ () => {
198
+
199
+ onDOMContentLoaded();
196
200
 
197
201
  }
198
202
  );