SamSaffron / MiniProfiler

A simple but effective mini-profiler for ASP.NET MVC, ASP.NET and Ruby.
http://miniprofiler.com
1.05k stars 221 forks source link

Uncaught TypeError: Object [object Object] has no method 'tmpl' #183

Open jimmymain opened 11 years ago

jimmymain commented 11 years ago

I am getting the below error, but only on some pages.

image

If I inspect the elements in chrome, I see the two links to the necessary dependent script files. image

If I check the network tab, the two files have been loaded.

My suspicion is that this might be race condition in the loading of the asyc java script files. I am happy to try and fix it myself if you guys have a few pointers?

Thanks Regards Craig.

jimmymain commented 11 years ago

Hi,

I have commented out the async, and this appears to have solved the problem (which is intermittent anyway). I think you might need to omit the async loading of the template, or find a way to ensure that the load order is preserved / correct.

Regards Craig.