title: Unresponsive script when loading page in production, but not in development
body: <p>I'm trying to use JQuery UI's sortable functionality(see <a href="http://jqueryui.com/sortable/" rel="nofollow noreferrer">http://jqueryui.com/sortable/</a>) for scheduling work assignments by dragging from a list of jobs to an employee, by date. </p>
  
  <p>It looks fine on my development environment. It loads quickly and works correctly. However, when I publish to my production server and try to load the same page on my production site it locks up. </p>
  
  <p>After waiting a while and telling the unresponsive page to stop, I get the following error in the console in Firefox:</p>
  
  <pre><code>Error: Script terminated by timeout at:
  w&lt;/u.uniqueSort@http://productionserver/bundles/jquery?v=v5ipibJm7AKDxo-gwvDlrhtKDuuTixthciRUzTvH4GU1:1:122745
  add@http://productionserver/bundles/jquery?v=v5ipibJm7AKDxo-gwvDlrhtKDuuTixthciRUzTvH4GU1:1:133074
  _on@http://productionserver/bundles/jqueryui?v=tG29gr4b89aZuHZhwb2RRduOLQe69zZ-D0yHV7Mp9SM1:1:9595
  _classes@http://productionserver/bundles/jqueryui?v=tG29gr4b89aZuHZhwb2RRduOLQe69zZ-D0yHV7Mp9SM1:1:8850
  _toggleClass@http://productionserver/bundles/jqueryui?v=tG29gr4b89aZuHZhwb2RRduOLQe69zZ-D0yHV7Mp9SM1:1:9474
  _addClass@http://productionserver/bundles/jqueryui?v=tG29gr4b89aZuHZhwb2RRduOLQe69zZ-D0yHV7Mp9SM1:1:9266
  _setHandleClassName/&lt;@http://productionserver/bundles/jqueryui?v=tG29gr4b89aZuHZhwb2RRduOLQe69zZ-D0yHV7Mp9SM1:1:204369
  each@http://productionserver/bundles/jquery?v=v5ipibJm7AKDxo-gwvDlrhtKDuuTixthciRUzTvH4GU1:1:110253
  _setHandleClassName@http://productionserver/bundles/jqueryui?v=tG29gr4b89aZuHZhwb2RRduOLQe69zZ-D0yHV7Mp9SM1:1:204340
  n.widget/&lt;/h[t]&lt;/&lt;@http://productionserver/bundles/jqueryui?v=tG29gr4b89aZuHZhwb2RRduOLQe69zZ-D0yHV7Mp9SM1:1:4508
  refresh@http://productionserver/bundles/jqueryui?v=tG29gr4b89aZuHZhwb2RRduOLQe69zZ-D0yHV7Mp9SM1:1:213332
  n.widget/&lt;/h[t]&lt;/&lt;@http://productionserver/bundles/jqueryui?v=tG29gr4b89aZuHZhwb2RRduOLQe69zZ-D0yHV7Mp9SM1:1:4508
  _create@http://productionserver/bundles/jqueryui?v=tG29gr4b89aZuHZhwb2RRduOLQe69zZ-D0yHV7Mp9SM1:1:204024
  n.widget/&lt;/h[t]&lt;/&lt;@http://productionserver/bundles/jqueryui?v=tG29gr4b89aZuHZhwb2RRduOLQe69zZ-D0yHV7Mp9SM1:1:4508
  _createWidget@http://productionserver/bundles/jqueryui?v=tG29gr4b89aZuHZhwb2RRduOLQe69zZ-D0yHV7Mp9SM1:1:6648
  n.widget/n[e][t]@http://productionserver/bundles/jqueryui?v=tG29gr4b89aZuHZhwb2RRduOLQe69zZ-D0yHV7Mp9SM1:1:4069
  n.widget.bridge/n.fn[t]/&lt;@http://productionserver/bundles/jqueryui?v=tG29gr4b89aZuHZhwb2RRduOLQe69zZ-D0yHV7Mp9SM1:1:5885
  each@http://productionserver/bundles/jquery?v=v5ipibJm7AKDxo-gwvDlrhtKDuuTixthciRUzTvH4GU1:1:110253
  each@http://productionserver/bundles/jquery?v=v5ipibJm7AKDxo-gwvDlrhtKDuuTixthciRUzTvH4GU1:1:108205
  n.widget.bridge/n.fn[t]@http://productionserver/bundles/jqueryui?v=tG29gr4b89aZuHZhwb2RRduOLQe69zZ-D0yHV7Mp9SM1:1:5790
  @http://productionserver/JobScheduling/MainJobBoard/:6304:7
  c@http://productionserver/bundles/jquery?v=v5ipibJm7AKDxo-gwvDlrhtKDuuTixthciRUzTvH4GU1:1:134341
  fireWith@http://productionserver/bundles/jquery?v=v5ipibJm7AKDxo-gwvDlrhtKDuuTixthciRUzTvH4GU1:1:135109
  ready@http://productionserver/bundles/jquery?v=v5ipibJm7AKDxo-gwvDlrhtKDuuTixthciRUzTvH4GU1:1:136894
  v@http://productionserver/bundles/jquery?v=v5ipibJm7AKDxo-gwvDlrhtKDuuTixthciRUzTvH4GU1:1:94196
  </code></pre>
  
  <p>I was thinking it might have something to do with bundling or minifying of scripts, but when I set <code>BundleTable.EnableOptimizations = true;</code> in BundleConfig.cs and run it in Visual Studio everything worked fine. I also tried running in Release and setting <code>compilation debug="false"</code> in Web.config. Both worked fine. </p>
  
  <p>For reference, here's my BundleConfig.cs RegisterBundles method:</p>
  
  <pre><code>    bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include(
      "~/Scripts/jquery-ui-{version}.js"));
  
      bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                  "~/Scripts/jquery-{version}.js"));
  
      bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                  "~/Scripts/jquery.validate*"));
  
  
      bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                  "~/Scripts/modernizr-*"));
  
  
      bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
                "~/Scripts/bootstrap.js",
                "~/Scripts/bootstrap-datepicker.js",
                "~/Scripts/DatePickerReady.js",
                "~/Scripts/respond.js"));
  
      bundles.Add(new StyleBundle("~/Content/jqueryuicss").IncludeDirectory("~/Content/themes/base", "*.css", false));
  
      bundles.Add(new StyleBundle("~/Content/css").Include(
                "~/Content/bootstrap.css",
                "~/Content/bootstrap-datepicker3.css",
                "~/Content/site.css"));
  </code></pre>
  
  <p>What could be causing my page to lock up in production, but not in development? What do I need to change?</p>
  
  <p>Any help would be appreciated.</p>