mvc-mini-profiler

Can miniprofiler be used on a static page?


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


Solution

  • 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.