• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

How do I upgrade jquery to a higher version ?

 
Ranch Hand
Posts: 602
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
While going thru some of the layout etc in someone's project, I notice this line.




And then I learnt that I may need to upgrade to higher or latest version.

But, googling thru this https://github.com/jquery/jquery-migrate/#readme I am still clueless.

I hope someone can guide me how to do the migration properly.

Should I just copy the js query 1.4.1 and past it onto the existing js and then run and build it before the copy the latest version js onto the existing jquery.js in my project ?

Tks.
 
Saloon Keeper
Posts: 12027
257
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a lot of questions.

You say you're browsing though someone's project. It is not your project? Are you working on somebody else's project? Are you forking a project?

Why do you think the issue is related to jQuery? What makes you think upgrading will help? What version are you using? What version do you want to migrate to?
 
tangara goh
Ranch Hand
Posts: 602
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Stephan van Hulst wrote:I have a lot of questions.

You say you're browsing though someone's project. It is not your project? Are you working on somebody else's project? Are you forking a project?

Why do you think the issue is related to jQuery? What makes you think upgrading will help? What version are you using? What version do you want to migrate to?




Hi,

As mentioned, the web developer tool told me I need to upgrade it...

Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead
 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is a deprecated source map syntax in a JavaScript source.

JavaScript sources are often combined and minified to make delivering them from the server more efficient. With source maps, the debugger can map the code being executed to the original source files.

The source map specification changed the syntax due to a conflict with IE whenever it was found in the page after //@cc_on was interpreted to turn on conditional compilation in the IE JScript engine. The conditional compilation comment in IE is a little known feature, but it broke source maps with jQuery and other libraries.
 
tangara goh
Ranch Hand
Posts: 602
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Sherin Mathew wrote:There is a deprecated source map syntax in a JavaScript source.

JavaScript sources are often combined and minified to make delivering them from the server more efficient. With source maps, the debugger can map the code being executed to the original source files.

The source map specification changed the syntax due to a conflict with IE whenever it was found in the page after //@cc_on was interpreted to turn on conditional compilation in the IE JScript engine. The conditional compilation comment in IE is a little known feature, but it broke source maps with jQuery and other libraries.



Hi Sherin,

Does that mean that I can ignore this 'error message' ?  I am using firefox running in Windows OS....Tks.
 
It sure was nice of your sister to lend us her car. Let's show our appreciation by sharing this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic