StartledCat Website Updates

19-Jan-2018 - Flash of Unstyled Content

Time to investigate - I can view this website on my mobile without any problems, but in a standard web browser there is/was a lot of flicker, otherwise known as Flash of Unstyled Content (FOUC).

A couple of searches and not much joy as I seem to have what is required to suppress FOUC. So, some testing required - first suspects are the calls to includeHTML().

Suspect identified and removed (includeHTML()) - all a lot smoother now, but will have to update all pages if any 'standard' content changes.


Was it a New Year's resolution, or the fact the old website was just a neglected test area? Either way, it's now looking like a default MVC website.

The main reason for this is that it is using the bootstrap navbar, but there's more.

Using VS2017, I created an empty MVC.Net project - not quite empty as it builds a sample website. I was hoping for a pure html option, but couldn't find it.

So, rather than wasting any more time, I added some views and updated the navbar links to create a skeleton website and then ran it to view the generated pages.

A few copy, paste and saves gave me my static html web pages (this is a static website - the host does not support IIS without a lot more cash).

Next was to include the common framework bits in every page using w3.includeHTML()

© 2018 - StartledCat