Skip to content

Commit 3ec150f

Browse files
committed
Add better installation order instructions
Fixes #154
1 parent d96c459 commit 3ec150f

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

docs/install/index.rst

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
11
Installation
22
============
33

4-
Raven is distributed in a few different methods, but they all should be included inside the ``<head>`` of your page.
4+
Raven is distributed in a few different methods, and should get included after any other libraries are included, but before your own scripts.
55

6-
You should try and include Raven as high up on the page as possible. Ideally, you'd like to include Raven first, in order to potentially catch errors from other JavaScript files.
6+
So for example:
7+
8+
.. code-block:: html
9+
10+
<script src="jquery.js"></script>
11+
<script src="//cdn.ravenjs.com/1.1.0/jquery,native/raven.min.js"></script>
12+
<script>Raven.config('...').install();</script>
13+
<script src="app.js"></script>
14+
15+
This allows the ability for Raven's plugins to instrument themselves. If included before something like jQuery, it'd be impossible to use for example, the jquery plugin.
716

817
Using our CDN
918
~~~~~~~~~~~~~

0 commit comments

Comments
 (0)