Skip to content

Commit 8f3dcb5

Browse files
authored
Update Analytics.js 2.0 overview page
- update intro paragraph - add information about load times and how the weight of the library is impacted by the number of device-mode destinations that are enabled
1 parent 27ee97a commit 8f3dcb5

File tree

1 file changed

+5
-4
lines changed
  • src/connections/sources/catalog/libraries/website/javascript

1 file changed

+5
-4
lines changed

src/connections/sources/catalog/libraries/website/javascript/index.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@ id: IqDTy1TpoU
1414

1515

1616

17-
Analytics.js 2.0, the latest version of Segment's JavaScript source, enables you to send your data to any tool without having to learn, test, or use a new API every time.
17+
Analytics.js 2.0 is the newest version of Segment's most popular JavaScript library. It is backwards compatible with our original Analytics.js Classic library, so in most cases, no code changes are necessary in order to start using Analytics.js 2.0. Analytics.js 2.0 enables you to send your data to hundreds of [destination tools](https://segment.com/docs/connections/destinations/catalog/){:target="_blank"} without having to learn, test, or use a new API every time.
18+
19+
Segment's Analytics.js 2.0 library is fully open-source and can be viewed on [GitHub](https://github.com/segmentio/analytics-next/){:target="_blank"}.
1820

1921
> info ""
20-
> Analytics.js 2.0 is available as an [open-source project](https://github.com/segmentio/analytics-next/){:target="_blank"}.
21-
> <br><br> All sources created on April 5, 2022 and after, default to use Analytics.js 2.0.
22+
> All sources created after April 5, 2022 will use Analytics.js 2.0 by default.
2223
2324

2425
## Benefits of Analytics.js 2.0
@@ -30,7 +31,7 @@ Analytics.js 2.0 provides two key benefits over the previous version.
3031
Analytics.js 2.0 reduces page load time and improves site performance. Its package size is **~70%** smaller than its predecessor, Analytics.js.
3132

3233
> info ""
33-
> Many factors impact page load time, including page weight, network conditions, and hosting locations.
34+
> Many factors impact page load time, including network conditions, hosting locations, and page weight. Each customer integration will vary based on the number of device-mode destinations that are enabled for each source. The more device-mode destinations that are enabled, the more data gets added to the library, which will impact the weight of the library.
3435
3536

3637
### Developer experience

0 commit comments

Comments
 (0)