Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to fix these Disqus "preload" warnings?

Console shows me these warnings below on my webpage with Disqus comments:

Why is their script so full of warnings? Should I / can I even fix it?

enter image description here

like image 245
Un1 Avatar asked Jan 04 '18 13:01

Un1


1 Answers

As I understand, it says that the browser preloads some resources that are not used afterwards on this page. If you don't like these warnings for some reason, try to get rid of something like (my guess)

<link rel="preload (or prerender)" href="//disqus.com">

in the head section of your html-template and keep me posted :) Probably, you should include preloading only on pages where disqus comments get actually loaded.

PS. I checked my site where disqus is used too. I don't use any library's/framework's component to load disqus comments though. Indeed, Disqus script adds this:

<link rel="preload" as="script" href="https://c.disquscdn.com/...">

in the head section for several resources. So, I think the reason given above is valid. Generally, it is browsers' stuff. I get warnings in Blink-based Google Chrome and Opera and empty console in Mozilla Firefox (Gecko-based) and Microsoft Edge (EdgeHTML-based). In the end, don't worry - those are just warnings related to internal browser stuff caused by the way disqus script behaves - I think we cannot change it (unless you just remove the whole disqus stuff from your site).

like image 131
curveball Avatar answered Oct 15 '22 09:10

curveball