Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create performance navigation timing plugin (close #1171) #1172

Conversation

igneel64
Copy link
Contributor

@igneel64 igneel64 commented Apr 13, 2023

Add a new @snowplow/browser-plugin-performance-navigation-timing plugin which will pull information from PerformanceNavigationTiming API.

Currently this works like the performance-timing plugin, attaching the context in each event after activation.

@bundlemon
Copy link

bundlemon bot commented Apr 13, 2023

BundleMon

Files added (6)
Status Path Size Limits
libraries/browser-tracker-core/dist/index.mod
ule.js
+24.52KB 25KB / +10%
trackers/javascript-tracker/dist/sp.js
+23.84KB 25KB / +10%
trackers/javascript-tracker/dist/sp.lite.js
+14.53KB 15KB / +10%
trackers/browser-tracker/dist/index.umd.min.j
s
+14.4KB 15KB / +10%
libraries/tracker-core/dist/index.module.js
+13.35KB 15KB / +10%
trackers/browser-tracker/dist/index.module.js
+3.46KB 5KB / +10%

Total files change +94.09KB 0%

Final result: ✅

View report in BundleMon website ➡️


Current branch size history

@igneel64 igneel64 changed the base branch from master to release/3.10.0 April 17, 2023 07:06
Copy link
Contributor

@matus-tomlein matus-tomlein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Just thinking if we can reduce the size of the entity by removing 0 properties.

Copy link
Contributor

@jethron jethron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM pending schema finalisation.

@igneel64 igneel64 force-pushed the feature/1171-add-performance-navigation-timing-plugin branch from 6214b35 to 7d6a8f8 Compare April 18, 2023 11:47
Copy link
Contributor

@jethron jethron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

## Maintainer quick start

Part of the Snowplow JavaScript Tracker monorepo.
Build with [Node.js](https://nodejs.org/en/) (14 or 16) and [Rush](https://rushjs.io/).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sidenote: Node 14 hits EOL in like 10 days, do we have plans to support current LTS (18) for all our stuff in the near future?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For our build systems, we should make sure Rush supports Node.js 18 properly, but from my experience we can just test it out and change our docs as required.
For the targets, in v4 we ditched Node.js 12 but we will be keeping Node.js 14 as the minimum still. On that, we need to make sure we also support Node.js 18 and Node.js 20 on our Node.js tracker.

@igneel64 igneel64 force-pushed the feature/1171-add-performance-navigation-timing-plugin branch 2 times, most recently from 2b2187c to c9860b8 Compare April 21, 2023 07:48
Copy link
Contributor

@matus-tomlein matus-tomlein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 👍

@igneel64 igneel64 force-pushed the feature/1171-add-performance-navigation-timing-plugin branch from c9860b8 to 98f0eb2 Compare April 26, 2023 12:09
@igneel64 igneel64 merged commit b72a943 into release/3.10.0 May 9, 2023
@igneel64 igneel64 deleted the feature/1171-add-performance-navigation-timing-plugin branch May 9, 2023 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants