Add early JS to populate header elements and optimize image loading. Co-authored-by: mathieumoran1 <[email protected]>