jsqury.min.js produces loads of errors if you switch on 'js warnings' in console Topic is solved

Talk about code development, features, specific bugs, enhancements, patches, and similar things.
Forum rules
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific bugs, git, the repositories, etc.

This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Please post issues with specific websites, extensions, etc. in the relevant boards for those topics.

Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
thosrtanner
Lunatic
Lunatic
Posts: 395
Joined: 2014-05-10, 18:19
Location: UK

jsqury.min.js produces loads of errors if you switch on 'js warnings' in console

Unread post by thosrtanner » 2017-06-14, 19:00

Which makes it a little difficult to see what I've done stupid

The main cause for complain appears to be this:

Code: Select all

SyntaxError: test for equality (==) mistyped as assignment (=)?
occurring in loads of different places

User avatar
adesh
Board Warrior
Board Warrior
Posts: 1277
Joined: 2017-06-06, 07:38

Re: jsqury.min.js produces loads of errors if you switch on 'js warnings' in console

Unread post by adesh » 2017-06-14, 19:34

jQuery is a pretty solid library and should not produce those errors. Maybe you are using a modified version of the library or the errors are coming from a different script. In any case I doubt if this is an issue with the browser. Here only you can yourself.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35602
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: jsqury.min.js produces loads of errors if you switch on 'js warnings' in console

Unread post by Moonchild » 2017-06-14, 20:04

Not a browser bug.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

thosrtanner
Lunatic
Lunatic
Posts: 395
Joined: 2014-05-10, 18:19
Location: UK

Re: jsqury.min.js produces loads of errors if you switch on 'js warnings' in console

Unread post by thosrtanner » 2017-06-14, 21:20

Oh, sorry, I mmisread he message. it actually says 'forums.palemoon.com/assets'. I thought it was pointing to an internal asset.

Um - that would imply the jquery is coming from here?

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35602
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: jsqury.min.js produces loads of errors if you switch on 'js warnings' in console

Unread post by Moonchild » 2017-06-14, 21:55

Yes, the forum uses jquery for some of its functions.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

thosrtanner
Lunatic
Lunatic
Posts: 395
Joined: 2014-05-10, 18:19
Location: UK

Re: jsqury.min.js produces loads of errors if you switch on 'js warnings' in console

Unread post by thosrtanner » 2017-06-15, 20:41

So is there a newer version? or is this something that should be raised with jquery developers?

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35602
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: jsqury.min.js produces loads of errors if you switch on 'js warnings' in console

Unread post by Moonchild » 2017-06-15, 21:03

JQuery uses a lot of "guess" code to probe for browser support. Likely this is by design.

Contacting the JQuery devs will likely fall on deaf ears because they officially only support "version current and current-1 of mainstream browsers".
In retrospect, it's likely the JQuery people who have forced many thousands of websites to "drop support for any browsers but current and current-1 of mainstream browsers" by using JQuery. So yeah, you can blame them for a lot of discrimination going on right now.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

Locked