You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/connections/sources/catalog/libraries/website/javascript/index.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,11 +14,12 @@ id: IqDTy1TpoU
14
14
15
15
16
16
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](/docs/connections/destinations/catalog/) 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"}.
18
20
19
21
>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 use Analytics.js 2.0 by default.
22
23
23
24
24
25
##Benefits of Analytics.js 2.0
@@ -30,7 +31,7 @@ Analytics.js 2.0 provides two key benefits over the previous version.
30
31
Analytics.js 2.0 reduces page load time and improves site performance. Its package size is**~70%** smaller than its predecessor, Analytics.js.
31
32
32
33
>info ""
33
-
>Many factors impact page load time, including page weight, network conditions, and hosting locations.
34
+
>Many factors impact page load time, includingnetwork conditions, hosting locations, andpage weight. Page weight for each customer integration varies 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.