title: Safari generates "Can't find variable" error although it is already defined in another Javascript page
body: <p>The JavaScript script works with Chrome and Firefox but not in Safari. The code is:</p>
  
  <pre><code>  $(document).ready(function(){
       $(window).load(function() {
          myVariable.start();
       });
  </code></pre>
  
  <p>This generates:</p>
  
  <pre><code>  ReferenceError: can't find variable: myVariable  
  </code></pre>
  
  <p>The variable is defined in another JavaScript page that is included in this page, but for some reason Safari doesn't see the definition in the other page. Is Safari executing this script without loading the page that the variable is defined in? </p>
  
  <p>How can I fix this?</p>
  
  <p>Thanks for any help</p>