Self-contained HTML file

It’s a very very big ad network’s requirement… I don’t want to use base64 images at all. But they want us to deliver ads and playables in one mega html file basically. We are not even allowed to have http requests or links to external assets.