Skip to content

Conversation

@wchargin
Copy link
Contributor

Summary:
Since TensorBoard is rendered entirely client-side with Angular and
Polymer, the screen is entirely blank when JavaScript is disabled. This
patch adds a simple “please enable JavaScript” <noscript> message.
Fixes #4401.

Test Plan:
In both Chrome and Firefox, the message appears when JavaScript is
disabled but not otherwise. It’s properly centered at wide window sizes
and doesn’t create a horizontal scrollbar at narrow ones. Looks like:

Screenshot of a blank page with a header “TensorBoard requires JavaScript”, followed by a message, “Please enable JavaScript and reload this page.” Both are rendered in Roboto, and appear to be centered in the screenshot.

wchargin-branch: noscript-message

Summary:
Since TensorBoard is rendered entirely client-side with Angular and
Polymer, the screen is entirely blank when JavaScript is disabled. This
patch adds a simple “please enable JavaScript” `<noscript>` message.
Fixes #4401.

Test Plan:
In both Chrome and Firefox, the message appears when JavaScript is
disabled but not otherwise. It’s properly centered at wide window sizes
and doesn’t create a horizontal scrollbar at narrow ones. Looks like:

![Screenshot of a blank page with a header “TensorBoard requires
JavaScript”, followed by a message, “Please enable JavaScript and
reload this page.” Both are rendered in Roboto, and appear to be
centered in the screenshot.][ss]

[ss]: https://user-images.githubusercontent.com/4317806/100648627-0b6d7b00-32f6-11eb-9781-68af70d7cb1f.png

wchargin-branch: noscript-message
wchargin-source: d0d821b92a6afc437a40b9c6bb439b4a6e70f7b6
Copy link
Contributor

@psybuzz psybuzz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this!

@wchargin wchargin merged commit 255ba04 into master Nov 30, 2020
@wchargin wchargin deleted the wchargin-noscript-message branch November 30, 2020 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Web UI: +<noscript> warning

2 participants