webdevops / TYPO3-metaseo

TYPO3 MetaSEO Extension
https://typo3.org/extensions/repository/view/metaseo
GNU General Public License v3.0
38 stars 25 forks source link

Cache piwik.js server-side #260

Open thomaszbz opened 8 years ago

thomaszbz commented 8 years ago

We are serving piwik.js from the source given by configuration (e.g. other domain or subdomain). Serving is done asynchronically for piwik.js so that it should already be served non-blocking.

That's working and fine so far, but still leaves potential for further improvements:

piwik_js

The idea is to cache the piwik.js from an external server/domain:

Enabling/Disabling this strategy should be made configurable, while we should default to the existing strategy which is quite failsafe at least.

Intended result:

TYPO3's infrastructure already allows to integrate external javascript files (via typoscript) and have them cached via TYPO3's caching framework. TYPO3's compressor can do the merging and serves the compressed version with a unique file name. Maybe we can reuse this. For that case we still have to test if TYPO3 somehow pulls updated versions.

Needs to be tested if it really improves something.

This could be done for google analytics in a similar manner.

thomaszbz commented 7 years ago

Additional suggestions:

https://piwik.org/blog/2017/04/important-performance-optimizations-load-piwik-javascript-tracker-faster/?pk_campaign=org_newsletter_2017_04_2&pk_medium=email&pk_source=piwik_org_newsletter