all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: "Óscar Fuentes" <ofv@wanadoo.es>
Cc: help-gnu-emacs@gnu.org
Subject: Re: eww/shr: a method for ignoring elements?
Date: Sun, 27 Dec 2015 06:57:09 +0100	[thread overview]
Message-ID: <87si2ol9hm.fsf@gnus.org> (raw)
In-Reply-To: <8737uovj22.fsf@wanadoo.es> ("Óscar Fuentes"'s message of "Sun, 27 Dec 2015 01:20:21 +0100")

Óscar Fuentes <ofv@wanadoo.es> writes:

>>> My primary use case is related to blocking trackers,
>>
>> What kind?
>
> Things like google-analythics and disqus. When one of those do not
> respond, for whatever reason, eww just waits for a long time.

Trackers are either images or Javascript.  shr-blocked-images blocks
images, and shr doesn't do JS.  (Or load JS.)

> This is part of the message sequence of a web page I just visited:
>
> Contacting host: feeds.nature.com:80
> Opening TLS connection to ‘disqus.com’...
> Opening TLS connection with ‘gnutls-cli --insecure -p 443 disqus.com’...done
> Opening TLS connection to ‘disqus.com’...done
> Opening TLS connection to ‘a.disquscdn.com’...
> Opening TLS connection with ‘gnutls-cli --insecure -p 443
> a.disquscdn.com’...done
> Opening TLS connection to ‘a.disquscdn.com’...done

I would guess that it's loading an image from disqus.

> If disqus.com responds quickly, there is no problem. But if it is slow
> or unresponsive (something that happens a few days every other month)
> eww hangs on
>
> Opening TLS connection with ‘gnutls-cli --insecure -p 443 disqus.com’...done
>
> At that point pressing C-g makes the same message reappear (it seems
> that eww re-tries the operation) which hangs again. Several C-g's are
> required to unblock eww (and Emacs). To make things worse, every now and
> then Emacs crashes on that sequence of C-g's. And all this for accessing
> a site that provides nil or negative value to the page's content.

And your Emacs is built without GnuTLS support, which may explain your
hangs.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



  reply	other threads:[~2015-12-27  5:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.35.1444172310.916.help-gnu-emacs@gnu.org>
2015-12-26 22:24 ` eww/shr: a method for ignoring elements? Lars Magne Ingebrigtsen
2015-12-26 23:28   ` Óscar Fuentes
2015-12-26 23:36     ` Lars Ingebrigtsen
2015-12-27  0:20       ` Óscar Fuentes
2015-12-27  5:57         ` Lars Ingebrigtsen [this message]
2015-12-27  7:09           ` Óscar Fuentes
2015-10-06 22:58 Óscar Fuentes

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87si2ol9hm.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=help-gnu-emacs@gnu.org \
    --cc=ofv@wanadoo.es \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.