Of course, if anyone who knew what they were doing could use the Reflector picker and retrieve JS or CSS. But that would be much more than just using something like FireBug to get this information. A typical end-user is unlikely to have the desire to address all these issues in order to spoil the resources. Anyone interested in this type of thing is likely to be a malicious user, not an end user. You probably have many other security concerns if the user can use a tool such as a build reflector in your DLL, because by that time your server was already hacked. Security was not a factor in my decision to deploy resources.
The bottom line was to get users to do something stupid with these resources, for example, delete them, thinking that they are not needed or in any other way interfere with them.
It is also much easier to pack an application for deployment purposes, since it involves fewer files.
It is true that the DLL (class library) used by the pages is larger, but this does not make the pages larger. ASP.NET creates the content that must be sent to the client (browser). Content is no longer sent to the client than is required for the page to work. I do not see how the class library that helps maintain these pages will affect the size of the data sent between the client and server.
However, Rjlopes has a point, it may be true that the browser cannot cache the embedded JavaScript / CSS resources. I have to check this, but I suspect Rjlopes is right: JavaScript / CSS files will need to be loaded every time a full-length postback is sent to the server. If this turns out to be true, this performance hit should be a factor in your decision.
I still couldn’t check the performance differences between using the built-in resources, reselling and individual files, because I was busy with my efforts. I hope that today I will take care of this because I am very curious and the caching point of the Rjlopes browser has risen.
Frinavale
source share