Skip to content

Render properly in Chrome - #5

Merged
doesitscript merged 2 commits into
doesitscript:developfrom
nohwnd:develop
Oct 22, 2016
Merged

Render properly in Chrome#5
doesitscript merged 2 commits into
doesitscript:developfrom
nohwnd:develop

Conversation

@nohwnd

@nohwnd nohwnd commented Sep 23, 2016

Copy link
Copy Markdown
Contributor

The dependency on ActiveX seemed odd. Looking inside of the code base I did not see any ActiveX dependencies but the page was still not loading correctly in chrome.

The cause of that is that by default the HTML files are saved in encoding different from UTF8 which makes chrome parse the linked JS and CSS files incorrectly. That in turn causes the page to load without charts (and any css what so ever).

So I fixed that way the files are saved, and also fixed quoting to comply better with HTML, even though both chrome and edge guess correctly what you wanted to do.

You might want to regenerate the example html files to reflect the new encoding. I did not want to do that, because it included my paths and mudded up the purpose of this PR.

Be default the encoding of the files is not UTF8 which forces Chrome to
read linked scripts and css incorrectly, which in turn means that we get
only plain-text web page without any styling. So this makes the scripts
usable in chrome as well. (did not test on firefox)
@doesitscript
doesitscript merged commit 8e75f53 into doesitscript:develop Oct 22, 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

Successfully merging this pull request may close these issues.

2 participants