Hacker News new | ask | show | jobs
by helenius 3129 days ago
Remember to always (every time) set width/height for the <img> tag, otherwise it will fill the entire screen/container.
2 comments

Yes! Loading many sites without width/height set on mobile connections display a horrible jitter with logos and social icons polluting the entire screen initially.
In the case here with the Twitter logo, lack of height attribute causes the logo to look squashed on some oldish browsers. I imagine the addition of height would fix this.