Topic: CSP somehow causing slow loading times for images/video?

Posted under Site Bug Reports & Feature Requests

heya all, i've been trying to figure out the source of this issue for about a month now and haven't gotten anywhere with it. pictures and video on e621 loads very slowly, upwards of 30 seconds for one image if it's resolution is large. this is only happens on e621, other image board websites work perfectly fine, youtube can easily stream at 1080, and just in general my internet connection is fast.

when i use f12 and check the network stuff (keep in mind i have no idea what 90% of this stuff means) i do see a consistent error pop up which states the following:
2848682:1 Refused to load the script 'https://plausible.dragonfru.it/js/script.js' because it violates the following Content Security Policy directive: "script-src 'self' ads.dragonfru.it https://www.google.com/recaptcha/ https://www.gstatic.com/recaptcha/ https://www.recaptcha.net/ https://assets.freespeechcoalition.com 'nonce-IadOmxj7Y8GrT1rqA8rDTQ=='". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.

this doesn't pop up on any other website, nor does anything similar to it, and i can see that plausible.dragonfru.it/js/script.js is something that's supposed to run on e621 as a bit of code. which leads me to think it's the root cause for why my loading times are so slow, since part of the code is being blocked. i could be completely wrong though. somehow CSP is blocking it, i tried to look on how to get around it, but couldn't find anything that worked. is there anyone with some knowledge on this stuff that could help me out here? i'm at a loss on what else to try.

potentially important to mention that i started having this issue after changing out the motherboard on my PC
it is not isolated to my network, as i have a laptop that works fine, and a roommate with a different PC for whom the website also works fine
what i've done so far that didn't work:
- clear browser cache and history
- tried other browsers (main one is chrome, but also tried edge and firefox)
- tried incognito mode
- tried removing all extensions (though the problem was due to an extension)
- disabled IPV 6 on my network
- removed malwarebytes (even though i never used it for real-time protection, heard it could cause issues)
- turned off firewall to check if somehow that was blocking it
- reset router twice
- turning on/off hardware acceleration

donovan_dmc said:
CSP is Content Security Policy, and what's being blocked is just a selfhosted https://plausible.io instance, it's analytics
nothing here would be causing any slowness

ah alright, that's a relief in one way. problematic in another, since that was my only lead on what might be causing this. at least i can focus my attention into different potential solutions from now on, so thanks for the confirmation.

It's happened to a few people, based on threads over the last six months or so. Have you tried the suggestion in topic #56792?

quenir said:
It's happened to a few people, based on threads over the last six months or so. Have you tried the suggestion in topic #56792?

i hadn't before, but i have now. And it did sort of resolve my issue! the only catch is it still doesn't work on chrome, but on firefox it seems to work perfectly fine.
all the more reason to switch over i suppose.

thanks for mentioning this! i hadn't found this post before, and it did help.