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
Post a Comment