gatsby-core-theme 44.4.48 → 44.4.49
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/CHANGELOG.md +7 -0
- package/gatsby-browser.js +9 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [44.4.49](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.4.48...v44.4.49) (2025-09-02)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* updated gtm inclusion ([b7f0360](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/b7f03605d1984351042fa06a1cd67812d39e435e))
|
|
7
|
+
|
|
1
8
|
## [44.4.48](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.4.47...v44.4.48) (2025-09-02)
|
|
2
9
|
|
|
3
10
|
|
package/gatsby-browser.js
CHANGED
|
@@ -155,9 +155,13 @@ function scrollEvent(event) {
|
|
|
155
155
|
exports.onClientEntry = () => {
|
|
156
156
|
if (process.env.PPC === 'true') {
|
|
157
157
|
scrollEvent(null);
|
|
158
|
-
} else {
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
158
|
+
} else if (typeof window !== 'undefined') {
|
|
159
|
+
const loadScripts = () => scrollEvent(null);
|
|
160
|
+
|
|
161
|
+
if ('requestIdleCallback' in window) {
|
|
162
|
+
requestIdleCallback(loadScripts, { timeout: 3000 });
|
|
163
|
+
} else {
|
|
164
|
+
window.setTimeout(loadScripts, 3000);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
163
167
|
};
|