One of the requirements for using ADVANCED_OPTIMIZATIONS with Closure-compiler is providing the compiler with type information for all of the functions and variables that are not directly defined by your code. This is typically done by using an extern file. Extern files are analogous to C/Java header files in that they provide forward type declarations. […]
The latest refresh of the Missouri State Campus Map continues to utilize the Google Maps API v3. The JavaScript for the Campus map has been rewritten from scratch. Now all three versions of the map use a common source code: Desktop view Mobile view Embeded view The source code was also rewritten to make better use […]
When first starting with Closure Compiler, it is easy to see the names for the compilation levels and assume that advanced is better than simple. While it is true that advanced optimization generally produces a smaller file, that does not mean it is the best fit for all projects.
iFrames and HTML5 templates have significant hurdles with older Internet Explorer versions. For Internet Explorer 8 and older, the frameBorder and scrolling attributes must be set on the iFrame as the equivalent CSS properties cannot accomplish the same thing. Unfortunately, these properties are not valid in an HTML5 template. Here’s a solution to have a standards compliant iframe work in IE.
Google recently posted a presentation I gave on using Closure Compiler to optimize your maps.