I don't even know how to describe this
Usually this thing that platforms like Twitter do, as they say, "just works." But I found an edge case where it doesn't. Not sure what to do.
by Dave Winer Wednesday, March 29, 2017

At some point in the evolution of the web someone invented the idea that you could leave the protocol off of a URL in a <script> element and it would inherit the protocol of the page it was referenced within.

This is probably an effort to be compatible with HTTPS.

It shows up in embedded tweets. When you get the code from Twitter, at runtime, it's of the form:

//platform.twitter.com/widgets.js?_=1490793793368

Here's the problem. The page is a file:// page.

So the address doesn't work.

I don't really want to rewrite the page so it loads it over HTTP, but if I have to I guess I will.

Hard to search for the answer on the web because, well how do you describe it?

Update: The workaround.