I think we really fucked the promise of the web when it became clear that cross-site scripting attacks and the monopoly value of walled gardens meant that in practice you cannot interleve sites or have APIs.
Now it's all just thick apps with horrific load time and resource use.