I had a problem with rendering a JavaScript / iFrame in the admin view of a block.
What you can do is change the admin view so that you don’t see the complete realtime rendered block but for example only an image or a small text.
This is the solution in most cases.