My site keeps flashing whenever it loads. Despite trying the solutions recommended in this stackoverflow post, I have had no success. Every page on my website loads a nav.html file using this code:
$.get("nav.html", function(data){
$("#nav-placeholder").replaceWith(data);
});
To view the .html code, please check the page source. The structure of the site is explained in more detail in another question of mine posted here: essentially, I want all navbar items defined in just one file (nav.html) so that any modifications can be easily implemented by editing a single file.