What we need is support for optimized&#x2F;hw accelerated versions of JS libraries in browser.<p>Eample:<p>A page declares that it will use library foo, e.g. &lt;lib name=&quot;foo&quot; version=&quot;^1.0&quot;&#x2F;&gt;. Browser, e.g. firefox, looks into common repository and sees that there is two versions of &quot;foo&quot;: one generic, and one optimized for firefox-x86_64, with native code, so it used optimized version instead.<p>Of course, code must come from trusted source and be signed, to reduce risks.