In Angular 14 using div causes performance to be reduced upto 20%

Discussão em 'Angular' iniciado por Sheikh, Novembro 24, 2024.

  1. Sheikh

    Sheikh Guest

    I have been working on improving my angular app performance(using LightHouse) so I start from top. I removed everything from app.module.ts and app.component.ts and form app.component.html. Template file I only <p>Test</p> and the performance is 92% but when I added a div <div>Test2</div> the performance reduced to 70% I tried this many time but still same. Does using the div tag causes the performance and I also checked the css rules there isnt any extra css applied on div than display:block .

    Please share inputs

    Thanks

    Continue reading...

Compartilhe esta Página