Hi Jake, thanks very much!
Usually, the code above handles swapping of a (large) content div from the new target page to the main page.
I would like to cater for changes of e.g. "ID" or "class" of the new content div or any other attributes of the div itself.
Or put differently, I thought that html() behaves a bit like the native "innerHTML" and was hoping that replaceWith() behaves a bit like an "outerHTML"...