I have a div with text in it and a background image. When I load the page the text always appear 1st(assume i have low speed internet connection). How can i make the background image load before text? Can You please give me solution in both jquery and javascript
Share
Add the text in the onload event handler for the image.
Note: If you want to keep using a
divtag with a background image rather than animgtag, you’ll have to add the text during the window.onload event (see this answer for the details).