GoogleChromeLabs / proxx

A game of proximity
https://proxx.app
Apache License 2.0
1.32k stars 125 forks source link

Load the GA script after all elements have been loaded. #496

Open beaufortfrancois opened 5 years ago

beaufortfrancois commented 5 years ago

After having watched https://www.youtube.com/watch?v=TsTt7Tja30Q, I figured I should try to improve PROXX perf as well. So here are my 2 cents.

Let's load the GA script after all elements (including lazy load scripts) have been loaded. It obviously improves Load time (not that important) but also improves DOMContentLoaded time.

WPT result page: https://www.webpagetest.org/result/190814_V9_3fe8aa2851ac323d70109052b7dadeb1/

beaufortfrancois commented 5 years ago

@surma Where do you track PROXX.app perf results?

surma commented 5 years ago

We don’t, really. Should we?

beaufortfrancois commented 5 years ago

Something like https://www.webpagetest.org/testlog.php?days=365&filter=https%3A%2F%2Fproxx.app or https://pwa-directory.appspot.com/pwas/5706707390693376 would be great.