From 0f983d1285157eca0d676d3436b8bb10941487ae Mon Sep 17 00:00:00 2001 From: Eric Holscher Date: Thu, 3 Oct 2013 15:28:52 -0700 Subject: [PATCH] Rejigger rtd.js so everything runs after jquery load --- media/javascript/rtd.js | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/media/javascript/rtd.js b/media/javascript/rtd.js index bd520a0ed..20d41203f 100644 --- a/media/javascript/rtd.js +++ b/media/javascript/rtd.js @@ -69,24 +69,25 @@ checkVersion(slug, version); getVersions(slug, version); + + /* + * Grok the Docs event handling + * This will allow you to better + * understand whats happening in your docs, + * once fully rolled out. + */ + + + $.ajax({ + url: "https://api.grokthedocs.com/static/client.js", + crossDomain: true, + dataType: "script", + cache: true, + }); + }); })(); -/* - * Grok the Docs event handling - * This will allow you to better - * understand whats happening in your docs, - * once fully rolled out. -*/ - - -$.ajax({ -url: "https://api.grokthedocs.com/static/client.js", -crossDomain: true, -dataType: "script", -cache: true, -}); -