Skip to content

style.css is 22.5 MB? #1063

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

Closed
brylie opened this issue Sep 13, 2016 · 2 comments
Closed

style.css is 22.5 MB? #1063

brylie opened this issue Sep 13, 2016 · 2 comments

Comments

@brylie
Copy link

brylie commented Sep 13, 2016

  • Version: 2.10.3
  • Browser/OS: Chromium / Ubuntu

When rendering the Swagger Editor, we were noticing >~10 second page load times. The browser console shows that style.css blocks the page load for about 8 seconds, and costs 22MB in network transfer:

screenshot from 2016-09-13 14-42-00

Please consider optimizing/minifying the style.css rules, so they load faster.

@brylie
Copy link
Author

brylie commented Sep 13, 2016

Note, when inspecting the style.css I notice several base64 blobs. It might be that our server was compromised. What is the usual size of style.css*?

@saharj
Copy link
Contributor

saharj commented Sep 16, 2016

We discussed this in #991

It's not an easy fix because we want Swagger Editor work from any path in a server so all of it's resources should have relative paths. Configuring webpack to do that is something I wasn't able to do because of this bug: webpack-contrib/file-loader#62

@saharj saharj closed this as completed Sep 16, 2016
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