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

[Bug]: Google fonts prevent web ui showing with bad Internet connection #4424

Closed
1 task done
byzod opened this issue Nov 7, 2022 · 4 comments
Closed
1 task done
Labels
bug Report of a confirmed bug upstream Issue or feature that must be resolved upstream

Comments

@byzod
Copy link
Contributor

byzod commented Nov 7, 2022

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits

What happened?

		<link
			href="[https://fonts.googleapis.com/css?family=Source Sans Pro](view-source:https://fonts.googleapis.com/css?family=Source%20Sans%20Pro)"
			rel="stylesheet"
		/>
		<link
			href="[https://fonts.googleapis.com/css?family=IBM Plex Mono](view-source:https://fonts.googleapis.com/css?family=IBM%20Plex%20Mono)"
			rel="stylesheet"
		/>

Those lines in the head section of webui webpage prevents the whole page to render when user have problem connecting to fonts.googleapis.com, as the page is generated thus can't be edit locally, there's no way to workaround besides pray for a better connection

Steps to reproduce the problem

  1. Launch sd-webui console
  2. Got a bad connection or be in China
  3. Open http://127.0.0.1:7860

What should have happened?

You can see content of webui few seconds later

Commit where the problem happens

804d9fb

What platforms do you use to access UI ?

Windows

What browsers do you use to access the UI ?

Mozilla Firefox

Command Line Arguments

COMMANDLINE_ARGS=--xformers

Additional information, context and logs

No response

@byzod byzod added the bug-report Report of a bug, yet to be confirmed label Nov 7, 2022
@byzod byzod changed the title [Bug]: Google fonts prevent web ui showing in bad Internet connection [Bug]: Google fonts prevent web ui showing with bad Internet connection Nov 7, 2022
@ClashSAN
Copy link
Collaborator

ClashSAN commented Nov 7, 2022

can't you turn off wifi before running? I usually just use it offline, only use wifi if I really need to get an extension update or update webui. Maybe you can just turn it back on after loading?

@byzod
Copy link
Contributor Author

byzod commented Nov 7, 2022

can't you turn off wifi before running? I usually just use it offline, only use wifi if I really need to get an extension update or update webui. Maybe you can just turn it back on after loading?

I'm using wired network, but yeah it's a workaround by unplug my network cable or find the hidden settings of windows that disable the network device

I forgot that physical offline is a thing since the last time a program requires me run in offline is like some random pirateware 20 years ago

@mezotaken mezotaken added bug Report of a confirmed bug upstream Issue or feature that must be resolved upstream and removed bug-report Report of a bug, yet to be confirmed labels Jan 17, 2023
@tattbones
Copy link

I prefer to work offline, which has been working just fine. Howeve,r on this latest build, I can see the following is preventing WebUI from starting. It just stays on the "Loading" animation.

fonts.googleapis.com (for two different fonts)
cdnjs.cloudflare.com

external

@missionfloyd
Copy link
Collaborator

#10324

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Report of a confirmed bug upstream Issue or feature that must be resolved upstream
Projects
None yet
Development

No branches or pull requests

5 participants