Skip to content

Instantly share code, notes, and snippets.

View zufrizalyordan's full-sized avatar
🧑‍🚀
I may be slow to respond.

Zufrizal Yordan zufrizalyordan

🧑‍🚀
I may be slow to respond.
  • Bandung, Indonesia
  • 17:54 (UTC +07:00)
View GitHub Profile
@zufrizalyordan
zufrizalyordan / sm-annotated.html
Created October 16, 2015 03:13 — forked from hdragomir/sm-annotated.html
The deferred font loading logic for Smashing Magazine. http://www.smashingmagazine.com/
<script type="text/javascript">
(function () {
"use strict";
// once cached, the css file is stored on the client forever unless
// the URL below is changed. Any change will invalidate the cache
var css_href = './index_files/web-fonts.css';
// a simple event handler wrapper
function on(el, ev, callback) {
if (el.addEventListener) {
el.addEventListener(ev, callback, false);
var map,
gmap = (function($){
var s = {
mapDefaults: {
mapTypeControl : false,
maxZoom : 18,
minZoom : 8,
panControl : false,
scaleControl : false,
scrollwheel : false,