Skip to content

Add a html message to GUI when javascript is disabled #7099

Closed

Description

@markmcb

If the browser loading the syncthing web GUI has something like noscript blocking javascript, the user is presented with a blank page. It would be helpful if a fallback html message stated that javascript is required for the page to load correctly.

Activity

  1. added
    enhancement
    needs-triage
    on Nov 8, 2020
  2. calmh commented on Nov 8, 2020

    @calmh
    Member

    Is there anyone with Javascript disabled who is actually surprised by this though?

  3. markmcb commented on Nov 8, 2020

    @markmcb
    Author

    Yes

  4. removed
    needs-triage
    on Nov 8, 2020
  5. added
    ui
    on Nov 8, 2020
  6. markmcb commented on Nov 8, 2020

    @markmcb
    Author

    Aside from the scenario of simply not connecting the dots that JS is being blocked, if the user is using a text-based browser like links the lack of JS results in a far more cryptic view (see attached screen shot).

    Screen Shot 2020-11-08 at 15 11 37

  7. tomasz1986 commented on Nov 9, 2020

    @tomasz1986
    Member

    Is there anyone with Javascript disabled who is actually surprised by this though?

    I think that this is useful maybe not necessarily for those that disable JavaScript on purpose, but there are cases where a non-tech-savvy person fiddles around with browser settings (or extensions) ending up disabling JS by mistake 😅. This is one way to make them aware of that.

    I will try to push a fix for this issue shortly.

  8. self-assigned this
    on Nov 9, 2020
  9. added 5 commits that reference this issue on Nov 9, 2020
    f22ec01
    af02253
    825d38b
    b2e9298
    d083d40
  10. tomasz1986 commented on Nov 9, 2020

    @tomasz1986
    Member

    @markmcb

    Aside from the scenario of simply not connecting the dots that JS is being blocked, if the user is using a text-based browser like links the lack of JS results in a far more cryptic view (see attached screen shot).

    In order for a Web site to be nicely displayed in text-based browsers, you would have to start with a clean and semantic HTML code that needs neither CSS nor JS to work. CSS should only be used to decorate the site or arrange its structure, and everything that relies on JS should also only be added with JS. This is called progressive enhancement.

    However, such an approach is impossible for an interactive Web application like Syncthing's Web GUI that cannot work without JS. While technically you could have a HTML stub and only add the JS-dependent code dynamically later, it would require a complete rewrite of the GUI as it is right now.

    I have added the no-JS warning in a way that it would be displayed at the very top, so your text-based browser should at least clearly show it first. It will still print the non-functional code seen in your screenshot, but I do not think that anything can be done about it.

  11. added a commit that references this issue on Nov 9, 2020
    a4fb013
  12. added this to the v1.12.0 milestone on Nov 9, 2020
  13. markmcb commented on Nov 9, 2020

    @markmcb
    Author

    @tomasz1986 that makes perfect sense to me. I definitely didn't mean to imply reworking the entire page. I think the message at the top will make it clear that the current environment is not adequate for a functional experience. Thanks!

  14. added a commit that references this issue on Nov 11, 2020
    fcd80c1
  15. added
    frozen-due-to-age
    on Nov 10, 2021
  16. locked and limited conversation to collaborators on Nov 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementfrozen-due-to-ageui

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions