Attempt to handle the header and footer replacement later in the DOM