Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7036067
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:22:46+00:00 2026-05-28T01:22:46+00:00

I you have a view that is using the _Layout.cshtml and you tell the

  • 0

I you have a view that is using the _Layout.cshtml and you tell the view to Reference script libraries, is that redundant since you will be referencing the script libraries from the _Layout.cshtml or am I missing something here. In all of the MVC tutorials I have gone through from Microsoft, they always leave Reference Script Libraries checked.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T01:22:47+00:00Added an answer on May 28, 2026 at 1:22 am

    When you check “Reference Script Libraries” this just adds references to jquery.validate.min.js and jquery.validate.unobtrusive.min.js you would only need these javascript libraries on pages with forms as it validates what a user has entered.

    You generally wouldn’t reference these in the _Layout.cshtml as they are not needed on non-form pages and would be unnecessary HTTP request performed when loading the page.

    If however you do have a form on every page or most pages and think it is acceptable to make the HTTP request on pages without forms then you can reference them in the _Layout.cshtml and simply not check the “Reference Script Libraries” when creating views.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an SSIS package that queries data from a view using an SQL
I have an Index.cshtml view: @model AttendenceModel @{ Layout = ~/Views/Shared/_Layout.cshtml; } @using (Html.BeginForm(VisOppsummering,
I have a UIView on top of another view that's using a UITouchGesture. The
I'm using MVC2 with VS2010 I have a view that has two partial views
I am using javascript unobtrusive validation. I have a view model that I am
I am using a webview and on that web view i have a image.
I have a view that takes data from my site and then makes it
I have a list view that is built using a simpleAdapter, each row is
A partial view that I'm using requires certain jQuery libraries to be included, and
I have a custom view in my app that I draw using the onDraw()

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.