Skip to content

Commit c58d021

Browse files
chore(release): 2.6.0 [skip ci]
# [2.6.0](v2.5.7...v2.6.0) (2024-10-07) ### Features * add support for proper tracking in a speculative pre-rendering context ([#102](#102)) ([aba822a](aba822a))
1 parent aba822a commit c58d021

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# [2.6.0](https://github.com/adobe/aem-lib/compare/v2.5.7...v2.6.0) (2024-10-07)
2+
3+
4+
### Features
5+
6+
* add support for proper tracking in a speculative pre-rendering context ([#102](https://github.com/adobe/aem-lib/issues/102)) ([aba822a](https://github.com/adobe/aem-lib/commit/aba822a616f8ee15a0aefbb42cebe5f85cfe65e2))
7+
18
## [2.5.7](https://github.com/adobe/aem-lib/compare/v2.5.6...v2.5.7) (2024-09-19)
29

310

dist/aem.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,12 @@ function setup() {
145145

146146
function init() {
147147
setup();
148-
sampleRUM();
148+
// Prerender-aware initialization
149+
if (document.prerendering) {
150+
document.addEventListener('prerenderingchange', sampleRUM, { once: true });
151+
} else {
152+
sampleRUM();
153+
}
149154
}
150155

151156
/**

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@adobe/aem-lib",
3-
"version": "2.5.7",
3+
"version": "2.6.0",
44
"description": "AEM Library",
55
"type": "module",
66
"scripts": {

0 commit comments

Comments
 (0)