Arne, Do you understand the basic principles of browsers? If the browser has downloaded the script once, on any site it does not download the script a second time. Have you ever wondered how this can significantly speed up page loading?
Ie the page is loaded on a slow connection not 2-3 minutes, but a couple of seconds?
marc0shas left
404.city
Arne, Did you know that cloudflare provides open source scripts for sites and oh yeah! They have built-in protection? << integrity="sha384-vFJXuSJphROIrBnz7yo7oB41mKfc8JzQZiCq4NCceLEaO4IHwicKwpJf9c9IpFgh" crossorigin="anonymous" >>
Arni Bro, what a horror. I have embedded this script in this chat, NOW REPTILIAN KNOW EVERETING ABOUT YOU!!! Didn't it boot? RIGHT!!! It should not be loaded in the browser either, but should be from the cache of your browser
henrikhas joined
jayteeukhas left
jayteeukhas joined
undefinedhas left
undefinedhas joined
404.city
Arne, If you have Twitter loaded in scripts, I recommend checking your plugin for blocking scripts for viruses. The share button on Twitter was made, without javascript scripts and load images. But you probably just don’t know the difference between "Twitter Bootstrap" and "Twitter"
loopboomhas joined
gnuhas joined
jayteeukhas left
jayteeukhas joined
404.cityhas left
loopboomhas left
ff255has left
Bjarkanhas left
Bjarkanhas joined
tom
» <404.city> Arne, Do you understand the basic principles of browsers? If the browser has downloaded the script once, on any site it does not download the script a second time. Have you ever wondered how this can significantly speed up page loading?
» Ie the page is loaded on a slow connection not 2-3 minutes, but a couple of seconds?
It's not
tom
It's actually slower
tom
The HTTP protocol itself has headers for caching and how log
tom
You should not use javascript at all, unless you absolutely have to and there's no other way
tom
If you care about performance and accessability
tom
The html has to finish loading before you can even begin to startup the jvm
tom
Vs
tom
Html being streamed in as it receives a element closure
tom
Then images loading
tom
(jpegs can be encoded to support progressive scan)
tom
Or you can use SVGs
tom
If you use an external CDN you lose control over latency for your site
tom
Even if you use a geographiclly close CDN, it's going to be slower because now you have to setup 2 TCP sessions sequentially, with TLS on top
tom, Thanks for the helpful advice ... There is a hint in chrome, for those who do not understand the headers, that the content is cached. In this screenshot you can find this place.
In this screenshot you can find this place.
На этом скриншоте вы можете найти это место.
On this screenshot you can find this place.
На этом скриншоте вы можете найти это место.
✎
404.city
tom, Thanks for the helpful advice ... There is a hint in chrome, for those who do not understand the headers, that the content is cached. In this screenshot you can find this place.
In this screenshot you can find this place. ✏
Things don't refresh when you press refresh or tell it not to cache
tom
It's also not a really good litmus test for web interop
tom
Since the blink engine is more optimized for running google's webapps rather than viewing web pages efficiently
christian
404.city: You never need the whole bootstrap. Usually you only need "util.JS". Or one or two more. And even if you don't need the whole bootstrap CSS, it's a development mistake to ping cloudflare every time from every connected IP, and it's definitely a mistake to download half a mega every time you send 2 letters in a chat. If you're too lazy to pick what you need and would rather do one hell of a traffic, stop developing for god's sake.
I'd argue that using bootstrap is a terrible mistake
404.city
tom, Pay attention to the title on your screenshot. The "last modification"
tom
Just write the data in the HTML
undefinedhas joined
tom
Then write a few CSS rules to add borders and good contrast and set a front
tom
Then your done
404.city
christian, Where do you see the chat on this page?
tom
https://www.nuegia.net/style.css
404.city
> tom: Just write the data in the HTML
This is not just a date, if you were a web application developer, then you would know that this header needs to be set manually and it is responsible for caching
solhas joined
tom
404.city: nginx has a very powerful syntax for setting caching headers
ff255has joined
tom
Set a ttl
guus.der.kinderenhas left
tom
Or a date
tom
Keep static objects in sane paths, then just apply caching rules that make sense for the path
tom
There's two main kinds of caching in http
tom
The kind where you tell the browser to keep the resource, and the kind you tell the browser to keep the resource but check back if it's been modified
christian
404.city: Don't worry, if I criticise you, you are valuable. I don't criticise everyone.
tom
It's the difference between a http 301 and no http request at all
undefinedhas left
tom
For example on my CDN that handles the http-upload XEP I set location / {
perl upload::handle;
expires modified +60d;
add_header Cache-Control private;
}
tom
Since I delete files 60 days after they've been uploaded
tom
And it's a static resource prepended with a guid so it's not going to change
tom
Oh, btw there's an interesting cache control parameter "IMMUTABLE" which is intended for content-addressable object stores
tom
Like IPFS
404.city
From your paronial advice and unrepeatable fears, the Internet works slower and this is very noticeable for Internet users with slow connections. It doesn't increase privacy and security in any way, it looks like a cargo cult https://en.wikipedia.org/wiki/Cargo_cult
tom
I've been thinking about integrating IPFS into my cdn so that if users are still interested in files after to 60d purge than it's still accessible, and I can just use ipfs daemon's built in garbage collector instead of a time based thing
404.city: the only cargo-culting going on is the people who ADD javascript to their site, thinking it will make it faster
tom
You don't add to websites to make them faster you remove
undefinedhas joined
tom
And you leverage fine control of HTTP's headers
tom
The web developers that can't code html and css themselves, and have to import some """framework"""
tom
Or use wordpress and install a bunch of ""optimization plugins""
404.city
tom, The saddest thing is that you mislead other people who understand it even less. I gave you a screenshot from the browser that proved it was cached, but you continue to prove that it is not. This explanation was signed by the developers in the browser especially for you.
404.city
tom, https://xmpp.404.city:5280/usershare/6d33720a4a94189f7b96d206ee5f6128196decf2/asa4zw5TzuiMiNRGdhD02PawBoPMwPe4Yp2mtzPa/Screenshot_from_2021-01-14_04-38-07.png
tom
404.city: you misunderstand
tom
I'm saying you shouldn't rely on Jquery at all
undefinedhas left
guus.der.kinderenhas joined
tom
That you should remove to dependence of jquery from you site
I'm sorry 404.city this really shouldn't end up in such discussion. It has been more a question vor a hint. I was just wondering why you implemented it. Also I actually couldn't open the link with activated dns blocker. But it's maybe just me.
Arne
Nevertheless we should be helping us here actually. Maybe you could remove some script parts?
I also had difficultis removing all this unneeded parts from my sites (and maybe there still is some left...), but never had this problem.✎
undefinedhas left
Alexhas left
alacerhas left
alacerhas joined
undefinedhas joined
Arne
Nevertheless we should be helping us here actually. Maybe you could remove some script parts?
I also had difficultis removing all this unneeded parts from my sites (and maybe there are still is some left...), but never had this problem. ✏
Arne
which also let me think about changing some things at my sites...✎
> The web developers that can't code html and css themselves, and have to import some """framework"""
You serious?
gnu
Why re invent the wheel for every single website
gnu
Being able to cache jQuery once and using it in every site isnt this bad
gnuhas left
gnuhas joined
gnu
Was I kicked or did I leave by accident :(
mathieui
you left by accident
solhas joined
Ge0rG
Yeah, what's wrong with dumping megabytes of JavaScript into your web page?
gnu
> you left by accident
Thx lol
qnixhas left
abidal3has joined
rom1dephas joined
jayteeukhas left
jayteeukhas joined
cuchas left
qnixhas joined
Beherithas joined
perflysthas joined
jayteeukhas left
jayteeukhas joined
Surenhas left
SouLhas left
insanityhas left
perflysthas left
Surenhas joined
martin-snikkethas joined
ntuseracchas left
martin-snikkethas left
wladmishas left
insanityhas joined
insanityhas left
wladmishas joined
wladmishas left
martin-snikkethas joined
wladmishas joined
Surenhas left
Surenhas joined
martin-snikkethas left
insanityhas joined
insanityhas left
qnixhas left
neoxhas joined
qnixhas joined
octagonhas joined
Surenhas left
insanityhas joined
insanityhas left
Surenhas joined
mjk
Caching stuff == being vulnerable to the oh-so-easy fingerprinting
vu764hd68fxthas left
404.cityhas joined
jayteeukhas left
jayteeukhas joined
vu764hd68fxthas joined
qnixhas left
mjk
Decentraleyes helps, I guess, but feels like a band-aid. If browser is a platform for applications, why doesn't this "platform" provide the basic libraries "every site" uses?✎
octagonhas left
SouLhas joined
gnu
Having every version of jquery and bootstrap is bloat :P
rom1dephas left
gnu
Btw this exists for what you said https://addons.mozilla.org/en-US/firefox/addon/decentraleyes/
Steven Roosehas left
qnixhas joined
Steven Roosehas joined
Huxxhas left
insanityhas joined
insanityhas left
Huxxhas joined
insanityhas joined
insanityhas left
jayteeukhas left
jayteeukhas joined
qnixhas left
insanityhas joined
insanityhas left
jsmhas left
insanityhas joined
insanityhas left
mimi89999has left
jsmhas joined
martin-snikkethas joined
mjk
> /me said:
> Decentraleyes helps, I guess, but feels like a band-aid. ✏
qnixhas joined
mjk
Whoops, that's a first for me. I edited my last message instead of quoting. Usually I f-up the other way around
insanityhas joined
insanityhas left
insanityhas joined
insanityhas left
qnixhas left
insanityhas joined
insanityhas left
mjk
I'll paraphrase my original message.
Decentraleyes helps, I guess, but feels like a band-aid. If browser is a platform for applications, why doesn't this "platform" ship the libraries "every site" is using?
insanityhas joined
insanityhas left
insanityhas joined
insanityhas left
froghas left
Beherithas left
insanityhas joined
insanityhas left
insanityhas joined
insanityhas left
martin-snikkethas left
insanityhas joined
insanityhas left
mjk
> Having every version of jquery and bootstrap is bloat :P
The use of the entire version zoo of a lib across the web is partly explained by the fact that devs are used to and _expect to continue_ being able to use the latest and greatest, instead of a stable standard API. Same probably goes for said lib's developers, who expect everyone to just bundle-and-forget, "live at HEAD", etc. So they feel free to break compat at every opportunity. The result is sites that each require fifteen different versions of jquery at different abstraction levels of their framework
mss_cyclisthas left
qnixhas joined
mss_cyclisthas joined
insanityhas joined
insanityhas left
insanityhas joined
insanityhas left
mjk
_That_ is bloat
insanityhas joined
ibikkhas left
Beherithas joined
belonghas left
ntuseracchas joined
jayteeukhas left
jayteeukhas joined
mimi89999has joined
qnixhas left
froghas joined
qnixhas joined
stefanhas left
stefanhas joined
belonghas joined
404.cityhas left
jayteeukhas left
jayteeukhas joined
froghas left
ajeremiashas left
froghas joined
ff255has joined
jayteeukhas left
jayteeukhas joined
robo18122020has left
robo18122020has joined
argon3771has left
argon3771has joined
ntuseracchas left
Beherithas left
Beherithas joined
ibikkhas joined
Gandalfhas left
Gandalfhas joined
Gandalfhas left
Gandalfhas joined
insanityhas left
jayteeukhas left
jayteeukhas joined
ajeremiashas joined
argon3771has left
argon3771has joined
insanityhas joined
insanityhas left
jayteeukhas left
jayteeukhas joined
insanityhas joined
guus.der.kinderenhas left
insanityhas left
insanityhas joined
insanityhas left
qnixhas left
insanityhas joined
insanityhas left
insanityhas joined
insanityhas left
perflysthas joined
insanityhas joined
insanityhas left
albertohas left
insanityhas joined
insanityhas left
insanityhas joined
insanityhas left
insanityhas joined
insanityhas left
insanityhas joined
qnixhas joined
insanityhas left
insanityhas joined
insanityhas left
rom1dephas joined
insanityhas joined
insanityhas left
insanityhas joined
insanityhas left
perflysthas left
insanityhas joined
insanityhas left
insanityhas joined
insanityhas left
insanityhas joined
insanityhas left
insanityhas joined
insanityhas left
insanityhas joined
insanityhas left
insanityhas joined
insanityhas left
insanityhas joined
insanityhas left
insanityhas joined
insanityhas left
jayteeukhas left
jayteeukhas joined
insanityhas joined
insanityhas left
insanityhas joined
qnixhas left
insanityhas left
insanityhas joined
insanityhas left
qnixhas joined
insanityhas joined
insanityhas left
insanityhas joined
insanityhas left
ajeremiashas left
insanityhas joined
insanityhas left
Beherithas left
Beherithas joined
insanityhas joined
insanityhas left
insanityhas joined
insanityhas left
insanityhas joined
argon3771has left
jayteeukhas left
jayteeukhas joined
insanityhas left
argon3771has joined
insanityhas joined
cuchas joined
jayteeukhas left
jayteeukhas joined
insanityhas left
perflysthas joined
insanityhas joined
insanityhas left
insanityhas joined
insanityhas left
insanityhas joined
insanityhas left
insanityhas joined
insanityhas left
insanityhas joined
insanityhas left
perflysthas left
perflysthas joined
insanityhas joined
insanityhas left
insanityhas joined
froghas left
insanityhas left
insanityhas joined
insanityhas left
insanityhas joined
insanityhas left
albertohas joined
insanityhas joined
insanityhas left
insanityhas joined
insanityhas left
insanityhas joined
insanityhas left
insanityhas joined
insanityhas left
insanityhas joined
qnixhas left
insanityhas left
insanityhas joined
insanityhas left
insanityhas joined
insanityhas left
insanityhas joined
rom1dephas left
insanityhas left
qnixhas joined
insanityhas joined
insanityhas left
insanityhas joined
insanityhas left
Beherithas left
qnixhas left
insanityhas joined
insanityhas left
insanityhas joined
insanityhas left
insanityhas joined
ajeremiashas joined
qnixhas joined
Gandalfhas left
Gandalfhas joined
Gandalfhas left
insanityhas left
Gandalfhas joined
insanityhas joined
insanityhas left
Arnehas left
christianhas left
qnixhas left
qnixhas joined
insanityhas joined
arne-bruenhas left
insanityhas left
christianhas joined
perflysthas left
qnixhas left
ff255has left
ff255has joined
insanityhas joined
insanityhas left
arne-bruenhas joined
Arnehas joined
86ulhas left
qnixhas joined
insanityhas joined
insanityhas left
ernst.on.tourhas left
ernst.on.tourhas joined
insanityhas joined
insanityhas left
insanityhas joined
wladmishas left
wladmishas joined
insanityhas left
Bjarkanhas left
insanityhas joined
insanityhas left
insanityhas joined
insanityhas left
Beherithas joined
Bjarkanhas joined
ntuseracchas joined
insanityhas joined
insanityhas left
insanityhas joined
insanityhas left
insanityhas joined
Arnehas left
insanityhas left
Beherithas left
Beherithas joined
insanityhas joined
insanityhas left
qnixhas left
insanityhas joined
insanityhas left
qnixhas joined
insanityhas joined
insanityhas left
insanityhas joined
insanityhas left
Beherithas left
insanityhas joined
insanityhas left
insanityhas joined
insanityhas left
insanityhas joined
insanityhas left
arne-bruenhas left
insanityhas joined
insanityhas left
insanityhas joined
insanityhas left
insanityhas joined
arne-bruenhas joined
Arnehas joined
insanityhas left
insanityhas joined
insanityhas left
perflysthas joined
thndrbvrhas joined
ntuseracchas left
insanityhas joined
insanityhas left
perflysthas left
insanityhas joined
insanityhas left
thndrbvrhas left
thndrbvrhas joined
gnuhas left
argon3771has left
argon3771has joined
insanityhas joined
insanityhas left
insanityhas joined
Bjarkanhas left
insanityhas left
Krishas joined
insanityhas joined
argon3771has left
argon3771has joined
jayteeukhas left
jayteeukhas joined
insanityhas left
insanityhas joined
insanityhas left
jayteeukhas left
jayteeukhas joined
insanityhas joined
insanityhas left
insanityhas joined
insanityhas left
insanityhas joined
insanityhas left
insanityhas joined
insanityhas left
insanityhas joined
insanityhas left
insanityhas joined
insanityhas left
Arnehas left
insanityhas joined
insanityhas left
arne-bruenhas left
edhelashas left
jayteeukhas left
jayteeukhas joined
edhelashas joined
qnixhas left
perflysthas joined
perflysthas left
perflysthas joined
Ivan A.has joined
ajeremiashas left
qnixhas joined
jayteeukhas left
jayteeukhas joined
insanityhas joined
insanityhas left
jayteeukhas left
jayteeukhas joined
insanityhas joined
insanityhas left
qnixhas left
qnixhas joined
insanityhas joined
insanityhas left
insanityhas joined
qnixhas left
insanityhas left
Neustradamushas left
404.cityhas joined
jayteeukhas left
jayteeukhas joined
jayteeukhas left
jayteeukhas joined
ff255has left
jayteeukhas left
insanityhas joined
jayteeukhas joined
insanityhas left
insanityhas joined
qnixhas joined
insanityhas left
insanityhas joined
Timhas joined
insanityhas left
briest
Hello. Looking for contact to admins/mods of gajim@conference.gajim.org and ejabberd@conference.process-one.net. I got somehow banned from these rooms, and have no idea why; I'm only lurker... maybe something with my server?
insanityhas joined
insanityhas left
vanitasvitaehas left
insanityhas joined
vanitasvitaehas joined
insanityhas left
insanityhas joined
insanityhas left
insanityhas joined
insanityhas left
jayteeukhas left
jayteeukhas joined
jayteeukhas left
jayteeukhas joined
arne-bruenhas joined
Arnehas joined
Ivan A.has left
jayteeukhas left
jayteeukhas joined
jayteeukhas left
jayteeukhas joined
qnixhas left
mehdihas left
qnixhas joined
Ivan A.has joined
Krishas left
qnixhas left
qnixhas joined
jsmhas left
jsmhas joined
Arnehas left
arne-bruenhas left
jayteeukhas left
jayteeukhas joined
perflysthas left
perflysthas joined
jayteeukhas left
jayteeukhas joined
qnixhas left
404.cityhas left
jayteeukhas left
jayteeukhas joined
rom1dephas joined
cuchas left
Gandalfhas left
Gandalfhas joined
qnixhas joined
perflysthas left
perflysthas joined
ibikkhas left
mehdihas joined
Gandalfhas left
Gandalfhas joined
qnixhas left
jayteeukhas left
jayteeukhas joined
Huxxhas left
jayteeukhas left
jayteeukhas joined
qnixhas joined
podhas left
neoxhas left
mehdihas left
Tim
briest: In the Gajim room (where I relayed your message), wurstsalat says:
> I can't have a look at the moment, but I will tomorrow, if nobody did by then :)