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

Server processing compression time is too long #51

Closed
kayw-geek opened this issue Mar 25, 2019 · 6 comments
Closed

Server processing compression time is too long #51

kayw-geek opened this issue Mar 25, 2019 · 6 comments

Comments

@kayw-geek
Copy link

Compress assets 207.7 ms、Compress css code 72.6 ms、
image
Why is that?

@skeeks-semenov
Copy link
Owner

@weikaiiii
This happens once, with subsequent page updates, the finished file should already be taken.
Is your project online? Can I link to it?

@kayw-geek
Copy link
Author

@weikaiiii
这种情况发生一次,随后的页面更新,应该已经完成​​了已完成的文件。
你的项目在线吗?我可以链接到它吗?
Yes, the problem persists. The project address is https://www.chasing-innovation.com

@kayw-geek
Copy link
Author

image
It seems that the code has been written repeatedly.

@skeeks-semenov
Copy link
Owner

@weikaiiii
Judging by the screenshot, yes)
I will check soon, thanks.

@kayw-geek
Copy link
Author

@weikaiiii
Judging by the screenshot, yes)
I will check soon, thanks.
You're welcome. I find that the _processingCss function in the local environment is slower than in the formal environment. Is it related to server configuration or PHP configuration?

@skeeks-semenov
Copy link
Owner

I corrected the duplication of logic, removed unnecessary.

_processingCss - in fact, uses this library to compile css code https://github.com/natxet/CssMin

If there are other libraries in mind that can do it on the fly faster. So we can try to introduce them. I have not dealt with this issue for a long time, so I don’t know, maybe there is something newer and better.

In my css projects in the html code is not very big, so I did not attach much importance to this. A css file compilation occurs once and then cached.

Although css in your project does not look great.

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

No branches or pull requests

2 participants