Jump to content

Invision Community 优化指南


mshr

Recommended Posts

本文将对 Invision Community 进行一些改动,以提高加载速度和用户体验

前期准备

CDN 列表

感谢以上网站提供的免费 CDN 加速服务,让我们有更好的访问速度

Twemoji

打开 applications\core\data\javascript.xml
applications\core\data\lang.xml
system\Output\Output.php

 
https://twemoji.maxcdn.com/2/72x72

全部替换为

 
https://cdn.jsdelivr.net/gh/twitter/twemoji/assets/72x72

reCAPTCHA

打开 applications\core\data\javascript.xml
applications\core\data\theme.xml
system\Helpers\Form\Captcha\Invisible.php
system\Helpers\Form\Captcha\Recaptcha2.php

 
https://www.google.com/recaptcha

全部替换为

 
https://www.recaptcha.net/recaptcha

Font Awesome

打开 admin\install\css\fonts.css
admin\upgrade\css\fonts.css

 
../font

全部替换为

 
https://cdn.staticfile.org/font-awesome/4.0.3/fonts


打开 applications\core\data\theme.xml

 
http://netdna.bootstrapcdn.com

替换为

 
https://cdn.staticfile.org

 
{url="applications/core/interface/font/fontawesome-webfont.woff2?v=4.7.0" base="none" noprotocol="true"}

全部替换为

 
https://cdn.staticfile.org/font-awesome/4.7.0/fonts/fontawesome-webfont.woff2?v=4.7.0

 
{url="applications/core/interface/font/fontawesome-webfont.woff?v=4.7.0" base="none" noprotocol="true"}

替换为

 
https://cdn.staticfile.org/font-awesome/4.7.0/fonts/fontawesome-webfont.woff?v=4.7.0

 
{url="applications/core/interface/font/fontawesome-webfont.ttf?v=4.7.0" base="none" noprotocol="true"}

替换为

 
https://cdn.staticfile.org/font-awesome/4.7.0/fonts/fontawesome-webfont.ttf?v=4.7.0


完成

Edited by mshr
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...