[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

why is the https 4chan image server slow as fuck?

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 23
Thread images: 5

File: 1479593430253.jpg (229KB, 627x720px) Image search: [Google]
1479593430253.jpg
229KB, 627x720px
why is the https 4chan image server slow as fuck?
>>
File: 1480909186828.jpg (197KB, 1038x834px) Image search: [Google]
1480909186828.jpg
197KB, 1038x834px
>>58728677
Because of /g/. Also, the first thing gookmoot did was to fuck up the servers.
>>
File: anime-pantie-babe.jpg (43KB, 540x763px) Image search: [Google]
anime-pantie-babe.jpg
43KB, 540x763px
I'm so sick of 4chan's speed it's always slow as fuck.
>>
>>58728677
Because thirsting weebs would crash the site if it wasn't throttled
>>
>is2.4chan.org/...

Change to:

>i.4cdn.org/...

Kill the gook, fap to gook.
>>
write a greasemonkey script to do this >>58728759
problem solved
>>
I mean the https://is2.4chan.org

not http://is2.4chan.org
>>
>>58728788
// ==UserScript==
// @name 4chanimgfix
// @namespace Hiroshima Nagasaki
// @author Anonymous
// @match *://boards.4chan.org/*
// @grant none
// ==/UserScript==

var a_scan = document.getElementsByTagName('a');
var hiroshima, nagasaki;
for(var i = 0; i < a_scan.length; i++) {
hiroshima = a_scan[i];
nagasaki = hiroshima.getAttribute('href');
if(nagasaki) {
hiroshima.setAttribute('href', nagasaki.replace(/is2?.4chan.org/gi, 'i.4cdn.org'));
}
}
>>
File: 1459234785321.gif (3MB, 200x180px) Image search: [Google]
1459234785321.gif
3MB, 200x180px
>>58728842
Thanks, got the script running.

I'll see how it fares.
>>
>>58728909
Although it doesn't seem to work with the Update button.

Just on a total page reload.
>>
>>58728677

The chink changed the image hosting to a cheaper one months ago.
>>
>>58728842
disgusting
document.querySelectorAll('.file a').forEach(a => a.href = a.href.replace('is2.4chan', 'i.4cdn'));
>>
>>58728677
try restarting your computer
>>
>>58728928
No the issue was that you click on a thumbnail and the image would take like more than 20 seconds to even start loading. Not that it took slow to load. And then only with the encrypted connection.

But this script
>>58728842
does change them over i.4chan well enough.
>>
>>58728946
Works too.

But again not with page update, just reloads.

Is this a Greasemonkey thing?
>>
>>58728922
>>58729014

Ok, pulled a good one from the archive that fixes the links even when using the "Update" link

// ==UserScript==
// @name Rewrite is.4chan.org
// @namespace
// @include *://boards.4chan.org/*
// @version 1
// @grant none
// ==/UserScript==

function fix(n) {
[...n.querySelectorAll('a[href^="//is.4chan.org/"]')].forEach(a => a.hostname = 'i.4cdn.org');
[...n.querySelectorAll('a[href^="//is2.4chan.org/"]')].forEach(a => a.hostname = 'i.4cdn.org');
}
fix(document);
new MutationObserver(function (ms) {
ms.forEach(function(m) {
[...m.addedNodes].forEach(fix);
});
}).observe(document.querySelector('.thread'), {childList: true});
>>
>>58729514
using this, how do I confirm it's actually working? images still load slow as shit.
>>
>>58730031
the images should be at i.4cdn.org instead of is2.4chan.org or is.4chan.org

it's right in the script.

My original issue was that clicking a thumbnail or even opening the image in another tab, would take like 20 or 30 seconds to even start loading.

The actual speed of the download was good enough.

But I am using the https connection to 4chan and the image servers.
>>
Gook moot a shit.
>>
>>58730084
yeah they're at i.4cdn.org

am also using https.

they start to load immedietly, but they load slow as shit. we should lynch that fucking gook jew.
>>
i've changed my hosts file to resolve is.4chan.org and is2.4chan.org to the ip of i.4cdn.org

still slow as shit. fuck joot. really makes the site fucking unusable.
>>
>>58730111
Yeah, definitely not fast, but at least they're loading for me now using i.4cdn.org.

I wasn't exaggerating when I said it would take between 20 or 30 seconds, even longer to even start to load with the default is2.4chan.org domain.
>>
File: 1482110242389.gif (358KB, 640x480px) Image search: [Google]
1482110242389.gif
358KB, 640x480px
>>58729514
God bless, this works great. Thanks anon.
Thread posts: 23
Thread images: 5


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.