Highlights● Runtime switching of static servers by config.● Fallback to alternative CDN when traffic spikes.● High Latency, cost effective.● Other CDNs geo-mapping screws up with GooglePublicDNS/OpenDNS.● Lessons learnt help us in tuning the overall network stack.
Gotchas1. Subset the font. Adjust x-height. use- fontsquirrel.com2. IE doesn’t render anything in the page until the font file is done downloading if there is a SCRIPT tag above the @font-face declaration.3. Chrome, FF download the font file only when they encounter text using the font. The text is hidden while the font is downloading.
OCSS in brief● Separate structure and skin.● Separate container and content.● Results in highly reusable(but non- semantic!) CSS classes.● Selectors - CSS architecture.● Against most CSS best practices.
CSS cleanup tool (Experimental)● Runs on Nodejs.● Fetchs pages, simulates a browser with JSDom and Sizzle.● Parses given CSS file(s).● Tests for presence of selector in pages with document.querySelector().● Rewrites CSS file marking unused selectors in comments.