From: Achim Gratz <Stromeko@Nexgo.DE>
To: emacs-devel@gnu.org
Subject: Re: Condition to link to javascript code?
Date: Sat, 24 Dec 2016 12:41:47 +0100 [thread overview]
Message-ID: <o3lmtn$icj$1@blaine.gmane.org> (raw)
In-Reply-To: <E1cKSYC-0001Xp-KM@fencepost.gnu.org>
Am 23.12.2016 um 17:18 schrieb Richard Stallman:
> I don't follow the meaning of that text. For instance, "rewriting the
> page into the form that is then ultimately displayed..." Could you
> explain what sort of rewrite you mean?
>
> The JS code I propose would indeed change the page -- but only in a
> single detail, the URL for klipse.js. That change hardly qualifies
> as "rewriting". So what "rewriting" is it?
You have to rewrite the DOM the browser sees before rendering the page
(or at least before it renders the part that loads klipse.js). Whether
you replace the complete page or just a single node isn't much of a
difference conceptually. The original page would always need to be
loaded at least partly, then check for the availability of local script
files, decide on where to load them from, then render the modified page.
In order to be responsive, those decisions need to be made as early as
possible, so it'd be a mistake to render much of the page before getting
there. You'd also have to ensure that the browser doesn't prefetch the
server versions (i.e. because they are visible in the document before
you get to remove them from the final DOM).
--
Achim.
(on the road :-)
next prev parent reply other threads:[~2016-12-24 11:41 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-15 3:01 Condition to link to javascript code? Bastien
2016-12-15 3:41 ` Clément Pit--Claudel
2016-12-15 12:12 ` Bastien
2016-12-17 15:47 ` Richard Stallman
2016-12-18 17:47 ` Bastien Guerry
2016-12-19 7:20 ` Elias Mårtenson
2016-12-19 8:06 ` Bastien Guerry
2016-12-19 8:46 ` Elias Mårtenson
2016-12-19 16:32 ` Bastien Guerry
2016-12-19 16:52 ` Clément Pit--Claudel
2016-12-20 18:15 ` Richard Stallman
2016-12-20 19:10 ` Davis Herring
2016-12-21 17:14 ` Richard Stallman
2016-12-21 11:28 ` Rasmus
2016-12-21 17:18 ` Richard Stallman
2016-12-22 10:24 ` Rasmus
2016-12-22 19:56 ` Richard Stallman
2016-12-23 13:40 ` Achim Gratz
2016-12-23 16:18 ` Richard Stallman
2016-12-24 11:41 ` Achim Gratz [this message]
2016-12-24 18:55 ` Richard Stallman
2016-12-25 10:04 ` Achim Gratz
2016-12-25 20:43 ` Richard Stallman
2016-12-22 3:13 ` Christopher Allan Webber
2016-12-22 19:54 ` Richard Stallman
2016-12-23 13:33 ` Achim Gratz
2016-12-23 16:18 ` Richard Stallman
2016-12-19 13:44 ` Stefan Monnier
2016-12-19 13:07 ` Richard Stallman
2016-12-19 17:01 ` Bastien Guerry
2016-12-20 18:16 ` Richard Stallman
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='o3lmtn$icj$1@blaine.gmane.org' \
--to=stromeko@nexgo.de \
--cc=emacs-devel@gnu.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.
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.