dart-sdk/pkg/browser
vsm@google.com e2ef36a751 Fix dart.js to handle query strings
Still needs an automated test, but this passes my local ones.

BUG=http://code.google.com/p/dart/issues/detail?id=8408

Review URL: https://codereview.chromium.org//12212203

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18549 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-14 23:38:20 +00:00
..
lib Fix dart.js to handle query strings 2013-02-14 23:38:20 +00:00
pubspec.yaml Create an sdk package to host dart.js 2013-01-08 18:35:22 +00:00
README.md Added a readme to the browser package, so people know what's up. 2013-02-14 19:11:48 +00:00

The dart.js file is used in Dart browser apps to check for native Dart support and either (a) bootstrap Dartium or (b) load compiled JS instead. Previously, we've recommended that you add a script tag pointing the version of dart.js in our repository. This doesn't work offline and also results in slower startup (see dartbug.com/6723).

Instead, we now recommend that you install dart.js via the following steps:

  1. Add the following to your pubspec.yaml: dependencies: browser: any

  2. Run pub install.

  3. Use a relative script tag in your html to the installed version:

    <script src="packages/browser/dart.js"></script>

If you do not wish to use pub, you may host a copy of this file locally instead. In this case, you will need to update it yourself as necessary. We reserve the right to move the old file in the repository, so we no longer recommend linking to it directly.