Browse Source

Speed up load time

pull/3/head
Luke Childs 8 years ago
parent
commit
f8cbc4f08c
  1. 2
      manifest.json
  2. 2
      src/content.js

2
manifest.json

@ -13,7 +13,7 @@
],
"content_scripts": [
{
"run_at": "document_end",
"run_at": "document_start",
"matches": [
"https://github.com/*/*",
"https://gist.github.com/*/*"

2
src/content.js

@ -1,6 +1,6 @@
// Inject empty style element for us to use
const style = document.createElement('style');
document.body.appendChild(style);
document.addEventListener('DOMContentLoaded', () => document.body.appendChild(style));
// Set tab size styles
const setTabSizeStyles = size => style.innerHTML = `

Loading…
Cancel
Save