最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How to do what YouTube does with the grey boxes while loading? - Stack Overflow

programmeradmin4浏览0评论

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

Want to try this out and cannot find answers. Only e 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?

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

Want to try this out and cannot find answers. Only e 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?

Share Improve this question edited Apr 22, 2018 at 18:05 allenski asked Apr 22, 2018 at 3:24 allenskiallenski 1,8624 gold badges29 silver badges40 bronze badges 4
  • Related: What is the name of this practice when a page loads?. This is not really remended. It’s been described as a “A placebo for slow internet”. – Sebastian Simon Commented Apr 22, 2018 at 3:39
  • 1 Why the down vote though? Thought this was legit a good thing, especially for accessibility. – allenski Commented Apr 22, 2018 at 3:41
  • Your question is too broad. It’s not really clear what you need, or what kind of answers you expect. – Sebastian Simon Commented Apr 22, 2018 at 3:53
  • 1 I only have 2 question written there followed by a question mark. I would like to know what is the best approach to do this. Thanks for the links btw, helps a bit. – allenski Commented Apr 22, 2018 at 3:56
Add a ment  | 

1 Answer 1

Reset to default 7

This technique is also called "skeleton screen".

发布评论

评论列表(0)

  1. 暂无评论