top-10-tracker.js loaded always
-
Hi Ajay,
For another issue I took a liberty of opening another thread. Currently top-10-tracker.js is only included on the pages where the tracker runs. While normally it makes sense, it is not helpful if you aggregate all js together. In such case you end up with two different aggregated js files – one with top-10-tracker.js and the other without. It doesn’t make much sense as the user has to download two different aggregated js – one with top-10-tracker.js and the other without.
The ideal solution would to have top-10-tracker.js included everywhere, but of course void on some pages. The behavior can depend on the presence of the inline ajax top-10 url (ajax_tptn_tracker). The inline data with ajax_tptn_tracker can be included only on pages that have to be tracked, while top-10-tracker.js would be included everywhere, to improve caching.A side issue – is it possible to rename top-10-tracker.js to top-10-tracker.min.js? The file is minified, but some plugins think it is not (because of the name) and force minifying it which is completely pointless and just burns CPU.
Thank you in advance for looking into that. I would love to have filters that would let me change where top-10-tracker.js is loaded.
- The topic ‘top-10-tracker.js loaded always’ is closed to new replies.