The function provided by pre-rendering can only solve the problem of white screen, but this content is actually just a frame generated by css and html, and there are problems such as the structure of the page and the actual inconsistency, and excessive white space.
English | 中文
Based on a scheme for automatically generating skeleton screens, I modified [skeleton](https://github.com/ElemeFE /page-skeleton-webpack-plugin/tree/master/src/script) code, when the Google plug-in is loaded, inject it into the page, select the current element, run outputSkeleton
, you can get the html&css of the skeleton screen
Two ways to install are currently recommended
git clone
killblanks源码
git clone https://github.com/warpcgd/killblanks.git
-
Open
chrome:extensions
, checkDeveloper mode
, clickLoad decompressed extension program
, select thekillblanks/packages/skeleton-chrome-ext/dist
folder in the clone source code -
Video tutorial
-
Open
dev-tools
-
Switch to
Element
tab -
Click the
Select Element
button to select any element -
Find
SKELETON
insidebar
-
Click on render
-
Video tutorial