added check for iframe load prior to sending style