title: json RequireJS plugins + jasmine
body: <p>I'am using <a href="http://pivotal.github.com/jasmine/" rel="nofollow">jasmine</a>  for testing JavaScript code.<br>
  The javascript code is made of module which are loaded using requireJs.<br>
  When I load json file using <a href="https://github.com/millermedeiros/requirejs-plugins" rel="nofollow">json requirejs-plugins</a>  which requires <code>text! plugin</code> I cannot see any output on the web browser.<br>
  The strange thing is also I don't get any javascript error.</p>
  
  <p>Here's my code (1).</p>
  
  <p>Any ideas?</p>
  
  <p>P.S.:<br>
  Not sure but maybe the problem is about time latency.<br>
  If I get the file from the local (<code>time latency = 6ms</code>) it works.<br>
  If I get the file (with the same content of local) from a remote server (<code>time latency = 170 ms</code>) it display an empty page.<br>
  Any idea how can I fix this problem?</p>
  
  <hr>
  
  <p>(1)</p>
  
  <pre><code>/*global define, window*/
  (function () {
      'use strict';
      var specUrl = './';
      define([
          'jasmine',
          'jasmineHtml',
          'jasmineJquery',
          'json!json_data', // if I comment this line is ok, 
                            // otherwise I get empty page with no error
          specUrl + 'models/user.spec'
      ], function (jasmine) {
          var initialize = function () {
              // some code
          };
  
          return {
              initialize: initialize
          };
      });
  }());
  </code></pre>
  
  <hr>
  
  <p>I did read the documentation about <a href="https://github.com/pivotal/jasmine/wiki/Asynchronous-specs" rel="nofollow">Asynchronous specs</a> but it is not clear how can I fix the issue, yet. Any ideas?<br>
  I did post a very simple code: (1) which works, (2) which does not works because, maybe, getting json_data from the server requires about 250ms.      </p>
  
  <p>(1)</p>
  
  <pre><code>    define([
          'appJasmine',
  //        'json!json_data',
      ], function (app) {
          app.initialize(); // it display data on browser
      });
  </code></pre>
  
  <hr>
  
  <p>(2)</p>
  
  <pre><code>    define([
          'appJasmine',
          'json!json_data',
      ], function (app) {
          app.initialize(); // it does not display data on browser
      });
  </code></pre>