Post Reply 
Firefox Noscript and Sidki's JS Insertion
Dec. 25, 2008, 05:29 PM
Post: #11
RE: Firefox Noscript and Sidki's JS Insertion
(Sep. 05, 2008 02:34 AM)whenever Wrote:  It seems sidki has his reason to insert his code that way but I know nothing about javascript code. Banging Head

There are two main reasons why the Proxomitron script gets inserted this way:
To declare the option flags prior to loading the external script. Kye-U, lnminente, z12 have shown alternatives.

To make sure that our external script gets loaded just once. "Final" HTML pages may come as a bunch of separate HTML fragments, each of which might be considered by Proxomitron as separate HTML page, resulting in multiple script injections. While loading an external script, the browser stops requesting any other page documents (images, CSS, JS, etc.).

IOW, multiple loads of the Proxomitron script would be a pane in the butt, even if the actual script code would get executed just once.
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Firefox Noscript and Sidki's JS Insertion - Guest - Sep. 07, 2008, 11:32 PM
RE: Firefox Noscript and Sidki's JS Insertion - sidki3003 - Dec. 25, 2008 05:29 PM

Forum Jump: