javascript - Asp.Net MVC Combine and remove inline scripts during response -


I am doing some performance analysis on some websites which I am working and I think there is a big problem inline Script For external shares I wrote an HTM handler which adds JavaScript to a file, connects, and GSP does. It is again stored by file names to be used again.

What I'm thinking (Not sure it's a good idea, but I am posting to get some feedback) If I remove all script elements with script, Write and combine them into a file then I use the same process that I am using for external scripts and add them to a script.

John

Inline script always gets inside the page, so each post Need to come by or from the server and from the server. Since you are using MVC, only non-trash script files in your project are easy because you have some control over the rendered HTML.

You also want to check out.

> Grudge, Chris.


Comments