edbrowse-dev - development list for edbrowse
 help / color / mirror / Atom feed
* [edbrowse-dev] timers and async (fwd)
@ 2019-09-07  4:56 Kevin Carhart
  0 siblings, 0 replies; only message in thread
From: Kevin Carhart @ 2019-09-07  4:56 UTC (permalink / raw)
  To: Edbrowse-dev


I think it's a good idea.

> So it would be nice to *know* if async scripts can run after the page is
> loaded, and after the onload code, but I don't even know how to ask the
> question.

Me too.  And extraneous is a subjective matter, right?  I don't think it 
would be discernible from static analysis.  Although, what if you 
differentiated based on whether it addresses the domain that you are 
loading, or an outside domain?  It wouldn't be 100% correct though, 
because sites can load libraries by just giving an href to the library 
website.  So doubleclick.com would be discernible as external, but 
jquery.com would look external too.

I also have a wacky idea.  Since we don't know which scripts must run 
early, group them based on a random draw.  Not by default, but as an enableable 
so it won't bother anyone unless they set it. 
So the user puts this setting on and the scripts are marked "must run 
early" or "can run later".  Then the page loads based on that.  From the user's 
perspective, they either got faster access to page contents, or they 
didn't.  If they didn't, they are no worse off.  If they did, they can 
find out what the draw happened to be, like 1,3,6, mandatory and 2,4,5 
discretionary.  And that grouping could become an ebrc setting for next 
time so that they can continue having early access to page contents.   It 
would be a form of learning through working backwards.  The thing that 
might make this work is that there tend to be a fairly small number of 
scripts most of the time.   Thus ends my wacky ideas for now..



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-09-07  4:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-07  4:56 [edbrowse-dev] timers and async (fwd) Kevin Carhart

edbrowse-dev - development list for edbrowse

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.vuxu.org/edbrowse-dev

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 edbrowse-dev edbrowse-dev/ http://inbox.vuxu.org/edbrowse-dev \
		edbrowse-dev@edbrowse.org
	public-inbox-index edbrowse-dev

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.edbrowse.dev


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git