title: How to call LinkedIn Javascript SDK onLoad function from another file
body: <p>I am planning to use 'Sign in with LinkedIn' feature in my app. I followed React flux app architecture in my previous projects in which I didn't define any functions in index.html. </p>
  
  <p>I read the LinkedIn docs and it says JS SDK has to be defined in the head section of the HTML like below.</p>
  
  <pre><code>&lt;script type="text/javascript" src="//platform.linkedin.com/in.js"&gt;
      api_key:    xxxxxxxxxxxxxx
      onLoad:     onLinkedInLoad
      authorize: true
  &lt;/script&gt;
  </code></pre>
  
  <p>I used to define only the following in HTML doc.</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
      &lt;head&gt;
        &lt;title&gt;&lt;/title&gt;
        &lt;link rel="stylesheet" type="text/css" href="./css/style.css"&gt;
      &lt;/head&gt;
      &lt;body&gt;
        &lt;div class="container"&gt;&lt;/div&gt;
        &lt;script type="text/javascript" src="./js/app.js"&gt;&lt;/script&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Is there a way to import LinkedIn JS SDK in other js files. If it has to be in the head of the index.html, is there a way to call <strong>'onLinkedInLoad'</strong> function from a different file ? </p>
  
  <p>Thank you!</p>