About Insanely Stupid Code

When looking into a JS-problem on an Autoptimized site, it turned out missing semi-colons messed things up. Missing semi-colons make JS un-minifyable, as eloquently explained by master-minifier and JS-guru Douglas Crockford in this Bootstrap issue from back in the day;

That is insanely stupid code. I am not going to dumb down JSMin for this case.

1 thought on “About Insanely Stupid Code”

  1. Well put. 😉
    Recently I was asked by a customer to fix a script on their site: the chat pop-up wasn’t working.
    The solution: the end of the script was }); }); when it should’ve been });


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.