Through the CSS control, can be implemented when loading the network picture, not loaded when the completion of the display of a local image of the bitmap, loading completed display network pictures;
Principle: Add a bitmap to the after pseudo element of the IMG tag, and IMG is set to Position:relative;after to set the SRC for the Position:absolute;img label as a network picture, This loading time because the network picture does not load complete, will display the local picture, the following case of JS is for obvious effect and deliberately delay set img src attribute.
<! DOCTYPE html>
End-of-text benefits:
Welfare one: front-end, Java, product Manager, applet, Python and other resources collection Big broadcast: https://www.jianshu.com/p/e8197d4d9880
Welfare II: Introduction to small procedures and actual combat full set of detailed video tutorial: https://www.jianshu.com/p/e8197d4d9880