Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to do what YouTube does with the grey boxes while loading?

I've started to notice that when loading a YouTube page, before content is loaded, everything appears as grey boxes:

enter image description here

Want to try this out and cannot find answers. Only come across articles of people asking for help because the content didn't actually load for them, ex: YouTube Help Forum

Is this YouTube's way of lazy loading? is this mainly done with Javascript?

like image 700
allenski Avatar asked Apr 22 '18 03:04

allenski


1 Answers

This technique is also called "skeleton screen".

like image 182
lucaleone Avatar answered Sep 23 '22 01:09

lucaleone