How to solve performance entry type FP and FCP problem in Firefox and Safari?

336 views Asked by At

It seems Firefox and Safari has a problem with or even not supporting performance entry types "first-paint" and "first-contentful-paint". What is the alternative way to handle these metrics?

Error in Firefox

enter image description here

Safari Error:

enter image description here

1

There are 1 answers

0
Ali Afsahnoudeh On

Right now we are putting a mark in the start of our HTML and another one in last line of body tag using performance.mark. Then we are measuring duration between this two marks with performance.measure. Maybe there is a better way to handle that.

 <html>
   <head>
    <script>
        performance.mark('started');


<script>
    performance.mark('first-contentful-paint');
</script>
</body>