Problems with Javascript at 'www.huk24.de'

For support with specific websites

Moderator: trava90

Forum rules
Please always mention the name/domain of the website in question in your topic title.
Please one website per topic thread (to help keep things organized). While behavior on different sites might at first glance seem similar, they are not necessarily caused by the same.

Please try to include any relevant output from the Toolkit Error Console or the Developer Tools Web Console using the following procedure:
  1. Clear any current output
  2. Navigate or refresh the page in question
  3. Copy and paste Errors or seemingly relevant Warnings into a single [ code ] block.
Waldbronner

Problems with Javascript at 'www.huk24.de'

Unread post by Waldbronner » 2020-10-05, 18:50

The website www.huk24.de breaks because of some javascript error unrelated to the extension (the website doesn't load even without any extension active), i.e. Pale Moon shows a broken view in normal and even in the secured mode. Using e.g. the Edge browser there are no problems. It's obviously the browser and not any add-on.

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

Re: Problems with Javascript at 'www.huk24.de'

Unread post by Moonchild » 2020-10-05, 19:47

TL;DR learn2code+learn2admin

The console displays 2 errors. Neither of them are our issue and need to be solved by the webmaster.

First:

Code: Select all

SyntaxError: expected expression, got keyword 'import'[Learn More]
they use import keywords first, then inside a function they use it as an object. programmer error. or perhaps their minification of the script totally mangled it

Second:

Code: Select all

Script from “https://www.huk24.de/dcs/hukch24prototypedev/1/JS-2.20.0-LAWA/s62169880419949?DQB=1& ... &mcorgid=BB193DD8560D04BA7F000101%40AdobeOrg&DQE=1” was blocked because of a disallowed MIME type.
Wrong mime type declared for imported scripts. Scripts need to be declared as "text/javascript" not "application/x-javascript" since it's not external, aside from the fact that "application/x-javascript" isn't a valid IANA MIME type. Since "nosniff" is also declared, we aren't allowed to make guesses about the MIME type other than what is declared.

Perhaps their McAfee web gateway is as fault since it seems to serve everything through that.
"A dead end street is a place to turn around and go into a new direction" - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

Waldbronner

Re: Problems with Javascript at 'www.huk24.de'

Unread post by Waldbronner » 2020-10-07, 09:23

Maybe, but (almost) all other common browsers show this website without errors. A request to the webmaster confirms this. His suggestion: Use a 'current' browser.

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

Re: Problems with Javascript at 'www.huk24.de'

Unread post by Moonchild » 2020-10-07, 11:08

So I just wasted my time analyzing the webmaster's errors. OK.
I'm sorry but I'm not going to break Pale Moon's MIME type compliance to cater to bad administration.
"A dead end street is a place to turn around and go into a new direction" - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

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

Re: Problems with Javascript at 'www.huk24.de'

Unread post by adesh » 2020-10-07, 12:04

Waldbronner wrote:
2020-10-07, 09:23
Maybe, but (almost) all other common browsers show this website without errors. A request to the webmaster confirms this. His suggestion: Use a 'current' browser.
Webmaster knows shit. Ask him to take some lessons (not online) from real people.

Waldbronner

Re: Problems with Javascript at 'www.huk24.de'

Unread post by Waldbronner » 2020-10-07, 14:19

OK, thanks for the evaluation. I'm not an expert and can only describe the problem from the user's point of view. The fact is that other browsers are obviously more fault-tolerant. Sorry, if anybody should feel I had trodden on their expert toes :silent:

User avatar
Nuck-TH
Project Contributor
Project Contributor
Posts: 311
Joined: 2020-03-02, 16:04

Re: Problems with Javascript at 'www.huk24.de'

Unread post by Nuck-TH » 2020-10-07, 14:22

Allowing standard violations and mistake errors is not fault-tolerance.

New Tobin Paradigm

Re: Problems with Javascript at 'www.huk24.de'

Unread post by New Tobin Paradigm » 2020-10-07, 14:36

It really isn't. We used to have diversity in the browser market that webmasters, any worth their salt, would reasonably ensure nearly if not complete compatibility with quirks and standards scross a spectrum. Of course in the Google Monoculture it is up to the people to MAKE them do the job they signed up for. So go, bombard reason and history at them. Perhaps you will get a few converts who aren't too weak and scared to actually use reason and logic to resolve issues rather than pandering to the lowest common denominator and their Google Overloards.

At this point, if webmasters and members of the corporate web DON'T accede to historical precedent, non-Google-only standards, and logic then you should seriously consider if this is something or these are people you want to do business with.

There is a common phrase.. vote with your dollars.. However with the massive amount of communist destruction going on even businesses tend to not care even about their own bottom line. See: Mozilla as an early example most of us are exceedingly familiar with. I think you should rather consider in this tech focused world to vote with your usage.

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 5590
Joined: 2015-12-09, 15:45

Re: Problems with Javascript at 'www.huk24.de'

Unread post by moonbat » 2020-10-07, 14:50

They can afford to ignore us because the vast majority of s⃫h⃫e⃫e⃫p⃫ people vote for them with their dollars/attention.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
Jabber: moonbat@hot-chili.net

New Tobin Paradigm

Re: Problems with Javascript at 'www.huk24.de'

Unread post by New Tobin Paradigm » 2020-10-07, 14:53

We'll see.

User avatar
hawkeye116477
Apollo supporter
Apollo supporter
Posts: 32
Joined: 2020-02-01, 16:29

Re: Problems with Javascript at 'www.huk24.de'

Unread post by hawkeye116477 » 2020-10-12, 09:35

I looked at this and looks like implementing dynamic module import and import.meta may fix displaying site a little. That can be easily confirmed on Firefox by toggling javascript.options.dynamicImport. In case of that error with MIME, I don't see them.

Waldbronner

Re: Problems with Javascript at 'www.huk24.de'

Unread post by Waldbronner » 2020-10-12, 10:25

Thanks for this hint. However, I cannot find the option 'javascript.options.dynamicImport' under about:config.
After creating this as a new key neither TRUE nor FALSE will have any effect in Palemoon browser.

User avatar
gepus
Board Warrior
Board Warrior
Posts: 1006
Joined: 2017-12-14, 12:59

Re: Problems with Javascript at 'www.huk24.de'

Unread post by gepus » 2020-10-12, 13:04

Waldbronner wrote:
2020-10-12, 10:25
Thanks for this hint. However, I cannot find the option 'javascript.options.dynamicImport' under about:config.
Unfortunately you got it wrong. The hint wasn't addressed to you.
'javascript.options.dynamicImport' isn't implemented in Pale Moon.