c# - What is the difference between "@Script.Render" and "<script>"? -


this question has answer here:

i want know difference between @scripts.render("~/something.js") , <script type="text/javascript" src="/something.js"></script>.

yes, i've searched subject, no success. think if @scripts.render exists isn't chance.

more details

what i'm meaning is: when should use 1 or other , why.

scripts.render used bundling, if bundle multiple scripts , give them name, can render them using statement.

on debug mode, they'll render multiple tags, , in production they'll deploy single bundled script.

here more bundling.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -