- ADDED: Detect if parent element is prepared (if not body) and prepare if required