This content will show up only after closing the popup.

This is because the popup code is placed before this content. This will force the browser to render this content only after it has dealt with the popup.