美文网首页
An Easy Way to implement a Splas

An Easy Way to implement a Splas

作者: forks1990 | 来源:发表于2018-11-07 15:29 被阅读0次

A splash screen show as fast as possible while user wait for our web application loading.

An angular application normally has a little heavy .js file. If splash screen implemented as angular component, loading .js file caused too much delay.

Here is the simplest solution: add splash/loading html inside <app-root></app-root> tag.

<app-root>
   Loading...
</app-root>

Content inside app-root tag will be replaced by AppComponent after angular finished bootstrap.

Create Eyes Catching Spinner

Open CodePen.io and search simple css spinner, emb required css inside .html file, make sure spinner shown as long as .html load.

Use Server render to Skip Splash screen

I think it is the best if application can shown without any delay, use server render. Server render is complex, but get the best result.

相关文章

  • An Easy Way to implement a Splas

    A splash screen show as fast as possible while user wait ...

  • 190321随笔

    always choose the right way instead of the easy way. it b...

  • right way or easy way?

    昨天听了李蕾的音频,她说,生活中不管是大事还是小事,其实都充满着重大的挑战,没有什么事情是容易的。从穿衣...

  • Easy way or Right way

    一次路过台北宋美龄故居,身旁的游客阿姨说:哎呀!真可怜,一生就是个填房,无儿无女的。我顿时很荒唐,她站在了如此高峰...

  • Easy way or hard way

    20190507 如果摆在面前的有两条路,easy way and hard way ,你会选择哪一条? 大多数人...

  • The right way or the easy way

    我最近的状态,生活节奏感有点乱,嗯,如上图所示,不知道从何时开始,差不多就是去年和前任结束后,就是每几天总是不停的...

  • DHSeparateTextField

    DHSeparateTextField An easy way to use a separate textfield

  • 【book 127】Learn Java The Easy Wa

    【book 127】Learn Java The Easy Way

  • 69. Sqrt(x) x的平方根

    题目链接tag: easy; Binary Search; question:  Implement int sq...

  • 1206

    the beginning is not easy,always a better way for learnin...

网友评论

      本文标题:An Easy Way to implement a Splas

      本文链接:https://www.haomeiwen.com/subject/sadvxqtx.html