Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

jakubjv's avatar

Is lighthouse good for testing performance?

Hello I've got web app made in laravel, on desktop device i have got 95 overall performance, but while i am testing it on mobile device i am getting this results


First Contentful Paint
6.0 s
Largest Contentful Paint
7.1 s
Total Blocking Time
0 ms
Cumulative Layout Shift
0.012
Speed Index
6.3 s

and it shows me that the Largest Contentful Paint is directly in paragraph block, i dont even know how can I improve this .. :/

<section class="home" id="úvod">
    <div class="container">
        <div class="row mt-5">
            <div class="col-lg-6 mt-5">
                <h1 class="display-3 text-white">Nech své vlasy promluvit</h1>
                <p class="text-white">V našem barbershopu nejde jen o úpravu vlasů a vousů, ale o vytvoření jedinečného stylu,
                    který vypráví Váš osobní příběh. Zapomeňte na obyčejné stříhání – u nás začíná cesta k novému
                    vzhledu, kterým budete vyprávět svůj příběh. Vaše vlasy jsou naším plátnem – a my
                    jim dáme hlas. Nechte své vlasy promluvit s námi!</p>
                <a href="#rezervace"><button type="button" class="btn btn-brand">
                        Objednej se
                    </button></a>
            </div>
        </div>
    </div>
</section>

i am first time preparing app for production, and i will be glad for any advice with that :/

0 likes
9 replies
gych's avatar

Not sure about the performance but what I see in your code is that you're using too much nested divs within your section.

jakubjv's avatar

@gych will try refactor that and let you know, thanks for advice!

1 like
gych's avatar

@JussiMannisto Yes you're right it is a normal bootstrap grid but is it really necessary to use a bootstrap row grid for only one column in this case?

Why not just use it like this?

  <section class="home container pt-5" id="úvod">
      <div class="col-lg-6 pt-5">
          <h1 class="display-3 text-white">Nech své vlasy promluvit</h1>
          <p class="text-white">V našem barbershopu nejde jen o úpravu vlasů a vousů, ale o vytvoření jedinečného stylu,
              který vypráví Váš osobní příběh. Zapomeňte na obyčejné stříhání – u nás začíná cesta k novému
              vzhledu, kterým budete vyprávět svůj příběh. Vaše vlasy jsou naším plátnem – a my
              jim dáme hlas. Nechte své vlasy promluvit s námi!</p>
          <a href="#rezervace"><button type="button" class="btn btn-brand">
                  Objednej se
              </button></a>
      </div>
  </section>
jakubjv's avatar

@gych unfortunately nothing worked :/ :( ..


First Contentful Paint
1.1 s
Largest Contentful Paint
1.3 s
Total Blocking Time
0 ms
Cumulative Layout Shift
0.006
Speed Index
1.1 s

performance on desktop is ok

gych's avatar

@Snapey, yes, I know, but thanks for mentioning that. I just shared my ideas on how that section could be improved, based on the structure that's used. Therefore, I started my reply with 'Not sure about the performance'

jakubjv's avatar

@gych I've got it still in development, i am in phase right before production, unfortunately i don't have url which i can provide to you :/

Please or to participate in this conversation.