Reputation: 6363
I've always used miniprofiler with MVC and it works like a champ, is it possible to use it on a SPA/Static html page?
Thank you, Stephen
Upvotes: 1
Views: 595
Reputation: 18513
Also keep in mind that you can check prior reports, so this could be a quick workaround.
see Accessing last profiled request
section on https://miniprofiler.com/
Upvotes: 0
Reputation: 41480
Yes, you should be able to use it.
Same general setup in Application_BeginRequest
. If you are using MVC to generate the html, include @MiniProfiler.RenderIncludes()
as normal. If you cant do that, you will need to find some other way to include the relevant scripts (look at MiniProfiler/ui/include.partial.html to see what is being rendered).
Ajax requests from the page should be handled by MiniProfiler without issue, as long as you have everything hooked up properly.
I have MiniProfiler working right now for a rather large Angular SPA (MVC backend), works without any issues.
Upvotes: 3