dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: Loading multiple JQuery files

  1. #1
    Join Date
    Nov 2011
    Posts
    1

    Loading multiple JQuery files

    Hello,

    A little new to web development and I had kind of a general question.

    The application I'm debugging is throwing a very general jquery error (H is undefined) based on my obfuscated js file. There are jquery methods in this file. The file has been tested and is used successfully in other applications.

    I noticed the application that throws the error is loading two versions of jquery:
    jquery-1.4.2.js and jquery-obf-1.4.2.cache.js

    Typically our applications only load the obfuscated version of jquery.

    I was curious if loading 2 versions of JQuery into a page could cause the confliction I'm seeing?

    Please advise, thanks.

  2. #2
    Join Date
    Dec 2005
    Posts
    2,984
    Absolutely shouldn't. That being said, you should probably stop loading more than one src of the library.

    If you're using chrome dev tools there's usually a sort of stack trace for the error so that you can see where it comes from in your JS code. If you file is minified, then use a dev version to see where in your file the error is originating.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles