-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
优化网页 Performance、Progressive、Accessibility、Best Practices 等 #24
Comments
PWA, 即:Progressive Web App (渐进式Web应用程序);它的存在,使得在网络上提供惊人用户体验的新方式,它为构建高质量的渐进式 Web 应用程序,提供了令人难以置信的优势,可以轻松取悦用户,增加参与度并增加转化次数。所以这已经成为了现代化 Web 应用程序必做工作。本应用对 PWA 的支持,选择参考了 vuejs-templates/pwa,其中用到 sw-precache-webpack-plugin 插件协助生成
即便已经将 后来仔细看了请求发现,地址栏访问 location ~ \.(htm|html|gif|jpg|jpeg|png|bmp|ico|css|txt)$ {
root /data/site/nicelinks/public;
index index.html;
try_files $uri $uri/ =404;
expires 7d;
} 果然改为如下这样,重启 location ~ \.(htm|html|gif|jpg|jpeg|png|bmp|ico|css|txt|js)$ {
root /data/site/nicelinks/public;
index index.html;
try_files $uri $uri/ =404;
expires 7d;
} |
从使用
Lighthouse
给应用跑分情形来看,在Performance
、Progressive
、Accessibility
、Best Practices
分别得分 48、64、67、88;这需要努力修缮一把。The text was updated successfully, but these errors were encountered: