Skip to content

Commit

Permalink
yashim/feat: add TTI Measurement (#5764)
Browse files Browse the repository at this point in the history
* feat: add TTI Measurement

* fix: security error

* fix: add regex to fire only in specific domain

* chore: remove console log

* fix: remove TTI script. Offload to GTM

* chore: revert gtm loading changes
  • Loading branch information
yashim-deriv committed Jul 13, 2022
1 parent 1860575 commit 534327c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/core/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,17 @@
background-color: var(--general-main-1);
}
</style>
<script type="text/javascript">
!(function () {
if ('PerformanceLongTaskTiming' in window) {
var g = (window.__tti = { e: [] });
g.o = new PerformanceObserver(function (l) {
g.e = g.e.concat(l.getEntries());
});
g.o.observe({ entryTypes: ['longtask'] });
}
})();
</script>
<script type="text/javascript">
var ui_store = localStorage.getItem('ui_store');
var l = window.location;
Expand Down

1 comment on commit 534327c

@vercel
Copy link

@vercel vercel bot commented on 534327c Jul 13, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

deriv-app – ./

deriv-app.binary.sx
deriv-app-git-master.binary.sx
deriv-app.vercel.app
binary.sx

Please sign in to comment.