Skip to content

Commit

Permalink
Revert "PagePerformance: Wait for onload event to finish"
Browse files Browse the repository at this point in the history
This reverts commit ffc4d85.
  • Loading branch information
rr-it committed May 16, 2023
1 parent 18dbec1 commit c5cbf4d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions js/piwik.js
Original file line number Diff line number Diff line change
Expand Up @@ -7353,10 +7353,9 @@ if (typeof window.Matomo !== 'object') {
* Mark performance metrics as available, once onload event has finished
*/
trackCallbackOnLoad(function(){
// Onload event is fired. Wait 15 seconds to assume it has also finished. */
setTimeout(function(){
performanceAvailable = true;
}, 15000);
}, 0);
});

Matomo.trigger('TrackerSetup', [this]);
Expand Down

0 comments on commit c5cbf4d

Please sign in to comment.