As the .manga-card.bigg > .picture element content is inserted via JavaScript, while the script doesn't load, it's width is 0. When JavaScript loads (and inserts the content), the card width is calculated, which cause an annoying layout change.
This PR fix the issue by setting an initial width to the card. These GIFs bellow demonstrate the difference (sorry for the crappy image quality!):
Before the fix:
After the fix:
This PR also lower the Cumulative Layout Shift
As the
.manga-card.bigg > .picture
element content is inserted via JavaScript, while the script doesn't load, it's width is 0. When JavaScript loads (and inserts the content), the card width is calculated, which cause an annoying layout change. This PR fix the issue by setting an initial width to the card. These GIFs bellow demonstrate the difference (sorry for the crappy image quality!): Before the fix: After the fix: This PR also lower the Cumulative Layout Shift