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 4616528
In Process

The Archive Base Latest Questions

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

I have an MVC 3 Razor partial page that is dependent on jquery.validate.js and

  • 0

I have an MVC 3 Razor partial page that is dependent on jquery.validate.js and jquery.validate.unobtrusive.js.

Is it possible for the partial page to check whether or not there is, already, a reference to the .js packs?

Since this is a partial page, it’s possible/probable that either the _Layout.cshtml or another included partial page has already referenced the .js packs. To avoid duplicate references to the .js packs, I would like the partial page(s) to be able to determine if it needs to add the reference to the packs or not.

  • 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-22T01:59:39+00:00Added an answer on May 22, 2026 at 1:59 am

    You can check if jQuery and jQuery.validate are defined and load the script if it’s not, but it’s not really worth the effort – browsers are caching js files, so if you have two references, it will only download it once.

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

Sidebar

Related Questions

With ASP.NET MVC3 (Razor) I have a simple page that loads a jQuery UI
I have a MVC app and using JQuery. I have anchor that I setup
I have an MVC app that does a lot of work with jQuery ajax
I have a MVC 3.0 .Net 4.0 Razor application that is periodically giving me
I have a MVC 3 Razor web application that needs to allow creating and
'm using ASP.NET MVC 3 with Razor views. I have a partial view which
asp.net mvc 3 with razor I have a script inside a partial view <script
I am using ASP.NET MVC 3, with the Razor engine. I have a partial
I have an MVC application that among other things contains a small Silverlight menu
I have an MVC application view that is generating quite a large HTML table

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.