AtlasOfLivingAustralia / commonui-bs3

Common UI for ALA webapps using Bootstrap 3
2 stars 6 forks source link

Improve performance of freshdesk resources #2

Open ansell opened 5 years ago

ansell commented 5 years ago

The freshdesk resources are currently a limiting factor for performance on biocache.ala.org.au, and possibly other sites also, after fixes yesterday for i18n resources to inline/async them.

The main resource causing an issue is:

https://s3.amazonaws.com/assets.freshdesk.com/widget/freshwidget.js

https://github.com/AtlasOfLivingAustralia/commonui-bs3/blob/master/footer.html#L153

The DNS entry seems to have a very low, 0 or 1 second TTL, so it consistently requires DNS resolution. It isn't asynchronous right now (possibly an easy initial fix). The subsequent requests are not asynchronous right now, but we may not be in control of that code unless we fork freshwidget.js.

ansell commented 5 years ago

This is the time statistics for the freshwidget.js resource on biocache-test today, showing its impact is much higher than the other resources screen shot 2018-11-08 at 9 25 56 am