Why not use writeCapture for document.write ?

155 views
Skip to first unread message

mac78

unread,
Dec 23, 2010, 5:02:49 AM12/23/10
to ControlJS
Hi,
CJS is great for delayed and asynchronous loading of script tags, one
area where it's lacking a bit is document.write.

May I suggest some sort of integration with writeCapture ?

writeCapture solves the issues in the controljs document.write
replacement.

I'm using writeCapture for complicated scenarios such as scripts with
document.write that write scripts which have document.write.

https://github.com/iamnoah/writeCapture

Cheers

Steve Souders

unread,
Dec 26, 2010, 12:09:57 PM12/26/10
to cont...@googlegroups.com, mac78
Hi, mac78.

The demos show writeCapture.js being load in a blocking fashion and also use jQuery. I'm not sure if
jQuery is required for writeCapture.js, but that would be a showstopper. And certainly it would need
to be loaded async.

I encourage you to explore this. Can you come up with a demo of the integration that loads async
without jQuery?

-Steve

Reply all
Reply to author
Forward
0 new messages