edbrowse-dev - development list for edbrowse
 help / color / mirror / Atom feed
* [Edbrowse-dev] showscripts()
@ 2017-09-19  2:38 Karl Dahlke
  2017-09-19 17:58 ` Geoff McLane
  0 siblings, 1 reply; 11+ messages in thread
From: Karl Dahlke @ 2017-09-19  2:38 UTC (permalink / raw)
  To: Edbrowse-dev

This is a function just for our debugging, rather like dumptree().
On www.nasa.gov, this is the output.

showscripts()
0: default https://dap.digitalgov.gov/Universal-Federated-Analytics-Min.js?agency=NASA&yt=true&dclink=true length 20237
1: text/javascript inline length 865
2: default inline length 32
3: default https://www.nasa.gov/sites/all/themes/custom/nasatwo/js/vendor.js? length 2097837 deminimized
4: default https://www.nasa.gov/sites/all/themes/custom/nasatwo/js/nasa.js? length 2361381 deminimized
5: default inline length 6116
6: default inline length 532
7: default inline length 0
8: text/x-placeholder inline length 0

Karl Dahlke

^ permalink raw reply	[flat|nested] 11+ messages in thread
* [Edbrowse-dev] showscripts()
@ 2018-01-30 15:41 Karl Dahlke
  0 siblings, 0 replies; 11+ messages in thread
From: Karl Dahlke @ 2018-01-30 15:41 UTC (permalink / raw)
  To: Edbrowse-dev

[-- Attachment #1: Type: text/plain, Size: 549 bytes --]

The showscripts command, for debugging, only shows the scripts produced by html.
This is a problem as more and more scripts are created dynamically.
Pass in 1, or true, showscripts(1), to see all scripts under document.
These are gathered by getElementsByTagName("script");
The resulting list is left in document.scripts2,
so if you want to know more about script 4, access document.scripts2[4].
You can see the difference on most sites, example nasa; the second list is longer than the first, and indexes need not correspond.

Karl Dahlke

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2018-01-30 15:41 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-19  2:38 [Edbrowse-dev] showscripts() Karl Dahlke
2017-09-19 17:58 ` Geoff McLane
2017-09-19 19:31   ` Karl Dahlke
2017-09-20 23:32     ` Geoff McLane
2017-09-20 23:56       ` Dominique Martinet
2017-09-23 23:40         ` Kevin Carhart
2017-09-20 23:59       ` Kevin Carhart
2017-09-21  1:56       ` Karl Dahlke
2017-09-20 13:38   ` Karl Dahlke
2017-09-21  0:33     ` Geoff McLane
2018-01-30 15:41 Karl Dahlke

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 NNTP newsgroup(s).