Old browsers would ignore the extra 'signature' attribute, while new browsers could check for that library in their included, pre-optimized list and skip the download if its found.
Seems like it would solve a lot of problems at once without affecting backwards compatibility.
One way to do it would be to include an extra attribute on the script tag with a SHA1 hash of the library. For example:
Old browsers would ignore the extra 'signature' attribute, while new browsers could check for that library in their included, pre-optimized list and skip the download if its found.Seems like it would solve a lot of problems at once without affecting backwards compatibility.