Loading In A site | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Loading In A site

Guys I am again in a trouble, Actually I am not much faimiler to Web development but if I do like this in css part body{ background-image:url("https://....."); } So like this in display all images take time to be load, is it possible to make a loder that after loding the image will not take time to load

20th Sep 2020, 7:37 AM
Rahul
Rahul - avatar
2 Answers
+ 3
Yes but you need to use javascript. For example, you can make body{display:none} And in js: Window.onload = function(){ document.body.style.display = "block"; }
20th Sep 2020, 8:32 AM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
+ 1
20th Sep 2020, 10:50 AM
Rahul
Rahul - avatar