From: "Óscar Fuentes" <ofv@wanadoo.es>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: eww/shr: a method for ignoring elements?
Date: Sun, 27 Dec 2015 01:20:21 +0100 [thread overview]
Message-ID: <8737uovj22.fsf@wanadoo.es> (raw)
In-Reply-To: <87ege8n5oh.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 27 Dec 2015 00:36:30 +0100")
Lars Ingebrigtsen <larsi@gnus.org> writes:
> Óscar Fuentes <ofv@wanadoo.es> writes:
>
>> Lars Magne Ingebrigtsen <lmi@gnus.org> writes:
>>
>>> See `shr-blocked-images'.
>>
>> Thanks Lars, although that variable affects only images.
>>
>> 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.
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
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.
>> javascript-based commentary sections (disqus, bazaar-voice) and
>> similar stuff.
>
> shr doesn't do JS...
I know, but the sites are contacted anyways (eww has no way to know that
the content being asked for depends on the availability of JS.)
>> Besides privacy control, too often eww hangs because the sites which
>> are contacted by those elements do not respond quickly and it is
>> necessary to press C-g several times to make eww responsive again.
>
> Images should be loaded asynchronously. The only synch element should
> be the DNS resolution, which we must make asynch one of these days.
Images is not the worst problem (although moving content around for
showing an image after you begun to read the text is more annoying on a
text-based browser than on a GUI-based one, in my experience, and
implementing a poor-man's version of Ad-Block would be nice too), but
the problem is with eww blocking while it contacts stuff mentioned on
the HTML, see above.
next prev parent reply other threads:[~2015-12-27 0:20 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 [this message]
2015-12-27 5:57 ` Lars Ingebrigtsen
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8737uovj22.fsf@wanadoo.es \
--to=ofv@wanadoo.es \
--cc=help-gnu-emacs@gnu.org \
--cc=larsi@gnus.org \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).