title: Can I load javascript from a php file?
body: <p>Can I do something like this?</p>
  
  <pre><code>&lt;script src="/js/custom-user.php" type="text/javascript"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>The reason behind it is that I want the .php file to die() when the user is not logged in, so that other visitors (not authenticated) cannot see what the javascript looks like. Is it possible/safe to do like this?</p>