Please make the internet better by removing alert()

65 views
Skip to first unread message

Darren Kopp

unread,
Nov 11, 2011, 2:48:12 PM11/11/11
to cont...@googlegroups.com
I'm sorry, but I am sick and tired of seeing this popup: http://i.imgur.com/SW008.png. Yeah, I know it's twitters problem but they don't have to click OK on many different websites.

The only people that care about a script that failed to load is developers, and there is a high probability that they are using firefox or chrome or safari as their main browser, so please replace

alert("There was an error loading script: " + src);

with 

console.log("There was an error loading script: " + src);

Here's some code to make console.log safer across multiple browsers: http://paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/
And for IE, you can always try console.log then fall-back to using an alert, but at least at that point it won't affect me anymore because I use chrome.

Thank you,
Darren

Steve Souders

unread,
Nov 11, 2011, 6:02:07 PM11/11/11
to ControlJS
Hi, Darren.

ControlJS was more of a proof-of-concept. In that context it's been
quite successful - many companies and people have used the code as a
starting point for more production-worthy versions.

I don't do active development on ControlJS now that the concept has
caught on. As proof-of-concept I'm comfortable with the alert, esp.
since developers should be hosting their own version of the code and
can make the change there, or can fork the code and start a new
project.

But if there is a lot of agreement that this change is important I
would be open to making the change in this original project. So I
encourage anyone else listening to reply. If there are many replies,
or if you can find many websites that have this problem, please file a
bug to get the change made.

Thanks.

-Steve
Reply all
Reply to author
Forward
0 new messages