Ok remember when I said amazon.com had its javascript in its home page,
in modest pieces? No such luck.
I found this snip of code that tries to execute
but doesn't, because I don't have it implemented.

  var scriptElem = document.createElement('script');
  scriptElem.src = 
"http://z-ecx.images-amazon.com/images/G/01/s9-campaigns/s9-multipack-min._V366882549_.js";;
  document.getElementsByTagName('head')[0].appendChild(scriptElem);

I am fairly certain this pulls in and executes javascript code dynamically.
But when?
When the src attribute is assigned?
When the script object is placed in the head section?
Or when that piece of javascript returns?

I really hope it's the latter.
Otherwise all sorts of code has to be reentrant.
I could stack up, actually fifo up, any such js urls and execute them
after the invoking js returns.
Not too hard to do, but it means I am missing entire swaths of js code
in amazon.com, probably in the dog vomit category,
which probably spends 90% of its time doing visual effects,
and can I really afford to spend the next 4 months trying to figure it out?

It does confirm something though: as I keep going I keep finding little
objects and methods that I just don't have implemented,
and they don't usually entail the big rewrite, they are more like enhancements,
but there are so many of them!

Karl Dahlke
_______________________________________________
Edbrowse-dev mailing list
[email protected]
http://lists.the-brannons.com/mailman/listinfo/edbrowse-dev

Reply via email to