Skip to content

Instantly share code, notes, and snippets.

View PeterMK85's full-sized avatar
💻
Working remotely

Peter Marosi PeterMK85

💻
Working remotely
View GitHub Profile
@PeterMK85
PeterMK85 / nokogiri cygwin
Created February 10, 2016 08:27 — forked from ianmariano/nokogiri cygwin
nokogiri cygwin
Make sure libxml2-devel, libxslt-devel and libiconv-devel are installed:
$ gem install nokogiri -- --use-system-libraries --with-xml2-include=/usr/include/libxml2 --with-xml2-lib=/usr/lib --with-xslt-dir=/usr/include/libxslt --with-iconv-include=/usr/include --with-iconv-lib=/usr/lib
@PeterMK85
PeterMK85 / txt
Last active February 11, 2016 08:49
Ansible & Vagrant on windows
# Win8.1 x64 Ansible & Vagrant
# Pre requisite: Vagrant, VirtualBox
# Cygwin
https://cygwin.com/
# Installer can be used az a package manager
# Packages: rsync & openssh & nokogiri
Stylesheets download behave on browsers
Downloading all stylesheets
Notes:
"If you use separate CSS files (and I'd urge you not too) the browser will download each of them even if it doesn't need them, this is a limitation of the CSSOM. Some browsers e.g. WebKit and Blink based ones prioritise the stylesheets so the ones needed to render the page are downloaded first and the others at some point later."
Responsive Media stylsheet behaviour
Link: https://www.igvita.com/2012/06/14/debunking-responsive-css-performance-myths/
"We've already established that the browser is smart enough to defer the loading of stylesheets which (a) do not match the media query, and (b) do not match the media device type. All other stylesheets are given a PriorityVeryLow to allow other critical assets, like JavaScript, to go ahead in the download queue"