How to use
Wait until your page renders.
|// @name Auto Check-In to Southwest Flights|
|// @namespace https://gist.github.com/ryanizzo/058829a5fafe733bd876410db7a1e699|
|// @version 1.9|
|// @author Nicholas Buroojy (http://userscripts.org/users/83813)|
|// @contributor Ryan Izzo (http://www.ryanizzo.com)|
|// @contributor JR Hehnly (http://www.okstorms.com @stormchasing)|
|// @contributor Trevor McClellan (github.com/trevormcclellan)|
|// @description Automatically check in to Southwest Airline flights at the appropriate time.|
|// @include https://www.southwest.com/air/check-in/index.html*|
|# To paste text into windows that normally don't allow it or have access to the clipboard.|
|# Examples: Virtual machines that do not yet have tools installed, websites that hijack paste|
|# Extended vs Simple?|
|# Extended includes an adjustable delay between keypresses and better handling of numbers|
|# Create a service: open Automator, create new service, receive no input,|
|# use any application, run applescript code below, save.|
|# In order for gpg to find gpg-agent, gpg-agent must be running, and there must be an env|
|# variable pointing GPG to the gpg-agent socket. This little script, which must be sourced|
|# in your shell's init script (ie, .bash_profile, .zshrc, whatever), will either start|
|# gpg-agent or set up the GPG_AGENT_INFO variable if it's already running.|
|# Add the following to your shell init to set up gpg-agent automatically for every shell|
|if [ -f ~/.gnupg/.gpg-agent-info ] && [ -n "$(pgrep gpg-agent)" ]; then|
|# Hello, and welcome to makefile basics.|
|# You will learn why `make` is so great, and why, despite its "weird" syntax,|
|# it is actually a highly expressive, efficient, and powerful way to build|
|# Once you're done here, go to|
|# to learn SOOOO much more.|
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
I wanted to figure out the fastest way to load non-critical CSS so that the impact on initial page drawing is minimal.
TL;DR: Here's the solution I ended up with: https://github.com/filamentgroup/loadCSS/
async attribute to make this easy, but CSS file requests have no similar standard mechanism (at least, none that will still apply the CSS after loading - here are some async CSS loading conditions that do apply when CSS is inapplicable to media: https://gist.github.com/igrigorik/2935269#file-notes-md ).
Seems there are a couple ways to load and apply a CSS file in a non-blocking manner: