Skip to content
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

Add missed css file all.min.css. DaiZerong 201732120115 #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

CODZR
Copy link
Contributor

@CODZR CODZR commented Apr 15, 2020

image
http://118.25.96.118/nor/ 的第三方库中,暂时没找到all.min.css文件,但是在运行的网站中对它是有需求的,且Header.php中也未对其引用,现将其另存为本地文件放入LRR仓库中。
另外三个字体文件是因为all.min.css中使用相对地址引用了它们,结构如下
../webfonts/fa-solid-900.eot
也就是说webfonts文件夹要与all.min.css的上一级目录同级,为了方便将all.min.css放入webfonts文件夹中。也可以另建一个文件夹与webfonts同级并在其中放入all.min.css文件,以确保能引用到webfonts中的字体文件。

@dzr201732120115

我理解了。就是 Header.php 第 33 行 用到了 all.min.css, 然后 all.min.css 又依赖于 ../webfonts/fa-solid-900.eot,所以你要包括这个 eot 文件。

总的来说,如果要用 all.min.css, 那么一定要下载 eot 文件。 个人感觉这个依赖关系有点严重。

如果不用 all.min.css , 也就是把Header.php 第 33 行 删除, 网页显示效果会怎么样?

我现在觉得,登录LRR时, 课程列表加载缓慢,就是因为这个 all.min.css 导致的。

蓝珲

@spm2020spring
Copy link
Member

@dzr201732120115

我把服务器上 Header.php 的 这行 删除后,重新登录 LRR, 好像加载课程列表速度没有任何提升, 要10-30秒时间。

删除 all.min.css , 网页的显示还是正常的。 所以,不明白当初的开发者 (Nor) 为什么要加入这个 style sheet。

你用你的账号登录LRR试试?要多长时间?

蓝珲

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants