Home Load google analytics after page load
Reply: 0

# Load google analytics after page load

user1000
1#
user1000 Published in April 26, 2018, 1:45 pm
 I develop an web application with preact. The total size of the webapp is about 30KB gzipped (Google Analytics is about 14KB). I want to add google analytics but I dont want that google analytics slows down the initial page load. The recommended method to include analytics.js () is   This works fine, but the analytics.js gets downloaded before my other stuff gets downloaded. Im pretty sure that this affects the page load as you can see in this picture) What is the recommend way to download analytics after the page finished loading. (In my case after 'menu' gets downloaded)
 You need to login account before you can post.
Processed in 0.30433 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO