Add missed css file all.min.css. DaiZerong 201732120115#27
Open
Add missed css file all.min.css. DaiZerong 201732120115#27
Conversation
Member
|
@dzr201732120115 我把服务器上 Header.php 的 这行 删除后,重新登录 LRR, 好像加载课程列表速度没有任何提升, 要10-30秒时间。 删除 all.min.css , 网页的显示还是正常的。 所以,不明白当初的开发者 (Nor) 为什么要加入这个 style sheet。 你用你的账号登录LRR试试?要多长时间? 蓝珲 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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导致的。蓝珲