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

Koa main website example code snippets disappear #1775

Closed
sopwerdna opened this issue Sep 12, 2023 · 4 comments
Closed

Koa main website example code snippets disappear #1775

sopwerdna opened this issue Sep 12, 2023 · 4 comments
Labels

Comments

@sopwerdna
Copy link

Koa site has example code which renders for a split second, then disappears.

I double checked and could not find other discussion of this problem, or a better place to report it (the koajs/koajs.com repo seems to be the actual home of the website code but issues are closed on that repo). I hope this is a helpful report. Thanks!

Actual behavior

Open the main koa site and scroll down to "Application" then look under the line "The obligatory hello world application". Refresh the page and you will see the example code appear briefly then disappear again. The same occurs with the next example code snippet under "Cascading". This occurs for me on both firefox, safari, and chrome on macOS, although I don't have any other OSs handy to test.

Expected behavior

Example code/hello world is displayed normally

@sopwerdna sopwerdna added the bug label Sep 12, 2023
@sopwerdna
Copy link
Author

Update: I was able to test with firefox on android, there it appears in plaintext, disappears, and then reappears a second or so later with full syntax highlighting in a Runkit widget. It seems like the problem on all desktop browsers is that the Runkit widget hides the original text but then fails to run and replace the plain text.

@iwanofski
Copy link

iwanofski commented Sep 14, 2023

I've tested this on Safari, Chrome and Firefox on a Macbook and I've had no issues seeing the examples. Could this have been a temporary bug? Are you still missing the examples? Anyone else who can confirm the bug?

@sopwerdna
Copy link
Author

Thanks - I think I've managed to confirm the problem is actually network related, with a corporate network firewall blocking websockets used by the Runkit widget (hence why it worked on my phone). Not sure why it needs a websocket connection to display code with syntax highlighting, or why the widget is hiding the plain text example code before successfully loading the enhanced code highlighting. Regardless, I think this is more a Runkit bug so I'll try to bring this to their attention.
Apologies for the spurious bug report!

@iwanofski
Copy link

iwanofski commented Sep 15, 2023

Not sure why it needs a websocket connection to display code with syntax highlighting, or why the widget is hiding the plain text example code before successfully loading the enhanced code highlighting

I wouldn't want to speculate on the "why" of how Runkit operates but to your question regarding replacing the example: I would imagine it's practical in case Runkit is down, the intended example still shows/exists on the page.

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

No branches or pull requests

2 participants