The script tag
[:script src="a_uri_of_the_script" bootstrap="true|false"]
SCRIPT tags to load the given script.
will generate the following, if the browser supports Dart
<script type="application/dart" src="/script/foo.dart"></script> <script src="/packages/browser/dart.js"></script>
On the other hand, if the browser doesn't support Dart, it will generate
Rsp.disableDartScript. For example,
if (yourAppInProduction) //whatever condition you'd like Rsp.disableDartScript = true;
The src Attribute
It specifies the URI of the script to load. It can be any kind of scripts that the SCRIPT tag can deliver. It is handled specially only if it is a Dart script.
The bootstrap Attribute
Optional Allowed Values:
It specifies whether to generate an additional
/packages/browser/dart.js if necessary.
server.uriVersionPrefix = "/12345678"; //must start with /
Then, the given prefix will be added to the generated URL. Furthermore, it is transparent to the application (the URI mapping needs not to be changed).