1

I am developing a simple chrome extension and testing out loading of the image for the background. Weird thing is, that I am loading it from the src folder and from what I can see in the network tab, the image loads in 20-50ms

But I always have this strange loading glitching

enter image description here

This white space above is still not loaded image. Any ideas why its causing it and how I can improve so it loads/renders the whole image instantly?

AlwaysConfused
  • 729
  • 2
  • 12
  • 37

1 Answers1

0

I managed to solve this issue by simply using img tag and not as an element with the background image prop to cover the entire screen. As soon as I implemented using the img tag, the issue was solved

AlwaysConfused
  • 729
  • 2
  • 12
  • 37
  • There are some links in [this question](https://stackoverflow.com/questions/17288500/img-vs-background-image-css-in-performance) that may be related. – Matthew Herbst Sep 10 '19 at 19:17