jQuery and document.ready() firing twice
<p>I know it is quite a common issue, but even with research I was not able to understand what goes wrong in my call to document.ready() Javascript function.</p>

<p>For some reason, it gets called twice, even when I don't execute anything else than an alert.</p>

<p>As I said in the title, I am using jQuery, and figured something could come from $(function(){}), so I removed any execution in there as well. Nothing changes, document.ready() is still called twice.</p>

<p>What can be the origin of this issue? How to troubleshoot/solve it?</p>

<p>Thanks in advance!</p>

<p>Here's the code I've tried :</p>

<pre><code>$(function(){
    //$( "#tabs" ).tabs();
});

$(document).ready(function() {
    //getTableEntity("organisation", "getentitytable", "#testtable");
    //standardDataTable('#tableOrga');
    alert("document.ready");
});
</code></pre>

<p>Edit : I know I'm using the same function twice. Putting everything in one function doesn't solve the problem.</p>
