Skip to content

Instantly share code, notes, and snippets.

@lion19
lion19 / webapp.html
Created April 14, 2017 00:39
custom webapp.html for a web build
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Razor</title>
<script>
(function() {
const link = document.createElement('link');
link.rel = 'stylesheet';
link.href = './style.css';
/**
* Build config for electron 'Renderer Process' file
*/
import path from 'path';
import webpack from 'webpack';
import validate from 'webpack-validator';
import ExtractTextPlugin from 'extract-text-webpack-plugin';
import merge from 'webpack-merge';
import HtmlWebpackPlugin from 'html-webpack-plugin';
@lion19
lion19 / 0_reuse_code.js
Created January 9, 2014 21:51
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
ilya grigorik
-chrome:
techniques:
70% of time is network.
not really bound by bandwidth.
bandwidth chart. --> look at that on chrome.
look at connection view (tcp connection did we open for this page) -- lag time
minimize the RTT -->
pre-resolve
preconnect