79623120

Date: 2025-05-15 10:35:43
Score: 1.5
Natty:
Report link

Yes, you can. How to do it:

1 - Add your JavaScript files as embedded resources

2 - Add your JS files to your project In the file properties, set ‘Build action’ to ‘Embedded resource’.

enter image description here

Do not forget : <script src="@Url.Action("GetScript", "Script", new { id = "monScript" })"></script>

For the last part : cache headers to the controller to avoid loading scripts on each request.

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Djamal ADAM