Skip to main content
23 events
when toggle format what by license comment
S May 3, 2016 at 13:57 history suggested Optimus CC BY-SA 3.0
Improved formatting
May 3, 2016 at 13:05 review Suggested edits
S May 3, 2016 at 13:57
Oct 8, 2015 at 10:13 comment added Codebeat @Dave Yesterday. Fixed it, thanks. Well, about the style of the code, I like it short (saves some bytes at downloading). The first letter is expected type. When you know this you don't need long var names, type is important. Because javascript is a untyped language, it's nice to know what the var must be instead of a long name that could be wrong.
Oct 8, 2015 at 9:17 history edited Codebeat CC BY-SA 3.0
remove wrong end of statement - };
Oct 6, 2015 at 21:28 comment added Dave This works for me, but I had to remove an extra }; on the line before o.require. Regarding its readability, I think that critics should present a better solution rather than ridicule the only solution presented. Most code that is considered well written by critics really ends up looking like hieroglyphics anyway.
Nov 23, 2014 at 5:24 comment added Codebeat @Thor84no: Thank you for you concerns. You are free to don't use it if you don't like it. Have a nice day.
Nov 22, 2014 at 23:07 comment added Vala If you don't see the value of readable code (and you could make that readable without any changes to actually executed code), then I feel sorry for every single person that has to work with you and your code.
Nov 21, 2014 at 18:04 comment added Codebeat Thank you for your kindness, @Thor84no. I hope you enjoy it. Code is designed for SPEED. Look at the answer of Aram Kocharyan, if you want to get it clearer if you don't understand it.
Nov 21, 2014 at 11:26 comment added Vala Whether this works or not, it's damned painful to read - let alone debug. That's some pretty poor formatting and truly atrocious coding style. The variable naming alone is a mess.
May 7, 2014 at 8:49 comment added Pacerier @Erwinus, Please add in which browsers are supported in the answer too, that would be helpful.
Aug 17, 2013 at 15:20 history edited Andrew Marshall CC BY-SA 3.0
spelling, grammar, remove sig
Jun 5, 2013 at 13:20 comment added Zathrus Writer @Erwinus I did not check headers, it was just a quick cross-browser check that I performed and $.getScript always ran without problems, so I stuck with it... you are welcome to try yourself, I'm using W7 and XAMPP here
Jun 5, 2013 at 1:57 comment added Codebeat @Zathrus: Sorry to hear that. Since I wrote this, never experience any problems with it and I also use caching at serving my scripts. Did you check the http headers of your caching method are well-formed? $.getScript is not the same as inserting a link tag to the head section of the page.
Jun 4, 2013 at 10:35 comment added Zathrus Writer I was forced to use jQuery's $.getScript, as this function did fail for cached scripts in MSIE8-, unfortunatelly
Jun 8, 2012 at 19:42 comment added Codebeat @gleber: This script is also cross-browser but with one major advantage: the code is less.
Jun 7, 2012 at 17:48 comment added gleber github.com/LivePress/scriptcaller - this project does exactly this in a cross-browser way with a nice interface
Aug 5, 2011 at 4:12 history edited Codebeat CC BY-SA 3.0
added 76 characters in body
Aug 4, 2011 at 20:53 history edited Codebeat CC BY-SA 3.0
deleted 140 characters in body
Aug 4, 2011 at 20:50 comment added Codebeat And also, it is a cross-browser solution ;-)
Aug 4, 2011 at 20:50 comment added Naftali You are using $('#'+os) and one or two others. you did notstate in your answer that you are using jQuery
Aug 4, 2011 at 20:44 history edited Codebeat CC BY-SA 3.0
deleted 60 characters in body
Aug 4, 2011 at 20:29 comment added Naftali ...where did jQuery come from?
Aug 4, 2011 at 20:26 history answered Codebeat CC BY-SA 3.0