How to check if javascript (js file) has been loaded or not loaded using PHP
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3976277/using-php-to-check-is-a-javascript-file-has-been-loaded">using php to check is a javascript file has been loaded?</a>  </p>
</blockquote>



<p>Is it possible to check if the js file is already loaded in a page using PHP? Because I have some block on my page that needs the js file. So if the js file is not loaded then don't load this block.</p>

<p>It's something like this:</p>

<p>if js file is not loaded then
    don't execute this php script
else
    execute this php script</p>
