Created by: coliff
The Google Analytics script currently on getbootstrap.com is loaded and executed asynchronously on all browsers but has the disadvantage of not allowing modern browsers to preload the script.
The alternative async tracking snippet in this PR adds support for preloading, which will provide a small performance boost on modern browsers.
This script implementation is provided and supported by Google: https://developers.google.com/analytics/devguides/collection/analyticsjs/#alternative_async_tracking_snippet
(Very old browsers that do not recognize the async
script attribute will degrade to synchronous loading and execution - but none of those browsers are supported by Bootstrap 4 anyway)