resbaz / resbaz2018

Website for ResBaz 2018 (a polymer-based rewrite of previous websites)
https://resbaz.github.io/resbaz2018/
MIT License
7 stars 23 forks source link

Load can be slow, leading users to sometimes see only the unformatted page (on Firefox only) #2

Closed philippbayer closed 6 years ago

philippbayer commented 6 years ago

This is how it looks like for a few seconds, on slower connections it sometimes stays like this:

image

Possible solutions:

DamienIrving commented 6 years ago

@tjdett Sorry to be a pest (I have no idea if you have time for this sort of thing these days), but any ideas on the page load delay?

tjdett commented 6 years ago

@philippbayer Are you seeing the slow behaviour on GitHub Pages, or just on your own desktop?

The "many files" approach the new version uses (to avoid the need to compile anything beforehand) works well with HTTP/2, but will look quite slow with HTTP 1.1. Most browsers support HTTP/2 so it's unlikely that you'll see a problem due to that when viewing on GitHub Pages.

However, most local web servers (like python -m SimpleHTTPServer 8000) only use HTTP 1.1 (particularly because most browsers don't support cleartext HTTP/2), which means that you'll likely see worse page performance when viewing locally.

tjdett commented 6 years ago

OK, I tried with Firefox this time (couldn't replicate with Chrome) and I see the behaviour in question. Probably because HTML Imports is provided by a JavaScript shim in Firefox.

Let me give it a think - there's another issue (https://goo.gl/EGXzpw) that also needs to be addressed.

philippbayer commented 6 years ago

Thank you for your answer, so it's a Firefox issue! I can confirm that it runs as expected on my laptop with Chrome.

Does the page want to support older IE? I already got a comment from the others that they can't see the date on the Perth page, <11 IE mangles the format slightly.

tjdett commented 6 years ago

@philippbayer Microsoft suggests strongly that IE <11 is not a good idea: https://www.microsoft.com/en-au/windowsforbusiness/end-of-ie-support

Those reporting problems should probably not be surfing the web from the electron microscopy workstations. ;-)

philippbayer commented 6 years ago

Thank you, I can confirm that it works now