This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |