JavaScript - Google Closure Compiler V.S. Gulp uglify

JavaScript - Google Closure Compiler V.S. Gulp uglify Intro I have two choice Google Closure Compiler UglifyJs Google Closure Compiler Google Closure Compiler Google Closure Compiler is a tool for minify and uglify js. From Google Java Command Line Slow UglifyJs mishoo/UglifyJS2 More option setting Node.js Command Line Fast Test Google Closure Compiler When i run command line, it used lot of cpu source. Can feel it lock some seconds. [Read More]

HTML5 - Full Screen Mode

HTML5 - Full Screen Mode It can control full screen the browser IE if it is to be more than IE11 Code function toggleFullScreen() { if (!document.fullscreenElement && // alternative standard method !document.mozFullScreenElement && !document.webkitFullscreenElement && !document.msFullscreenElement ) { // current working methods if (document.documentElement.requestFullscreen) { document.documentElement.requestFullscreen(); } else if (document.documentElement.msRequestFullscreen) { document.documentElement.msRequestFullscreen(); } else if (document.documentElement.mozRequestFullScreen) { document.documentElement.mozRequestFullScreen(); } else if (document.documentElement.webkitRequestFullscreen) { document.documentElement.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT); } } else { if [Read More]