Permalink
Browse files

Improved the speed of the Chrome extension.

Changed run_at event to document_start.
  • Loading branch information...
1 parent 829f62d commit c4468fc34412bc0b77ede245a6de0ec6dfbb1c54 @stewart committed May 4, 2012
Showing with 4 additions and 4 deletions.
  1. BIN builds/dotcss.crx
  2. +2 −2 ext/dotcss.js
  3. +2 −2 ext/manifest.json
View
Binary file not shown.
View
@@ -2,8 +2,8 @@ $.ajax({
url: 'http://localhost:1243/' + window.location.host.replace('www.', '') + '.css',
dataType: 'text',
success: function (data) {
- var body = $("body");
- $('<style></style>').appendTo(body).text(data);
+ var head = $("head");
+ $('<style></style>').appendTo(head).text(data);
},
error: function() {
console.log("No dotcss server found at localhost:1243");
View
@@ -1,11 +1,11 @@
{
"name" : "dotcss",
- "version" : "1.0",
+ "version" : "1.0.1",
"description" : "~/.css",
"icons": { "48" : "icon48.png", "128" : "icon128.png" },
"content_scripts": [{
"all_frames": true,
- "run_at" : "document_idle",
+ "run_at" : "document_start",
"matches" : ["http://*/*", "https://*/*"],
"js" : ["jquery.js", "dotcss.js"]
}],

0 comments on commit c4468fc

Please sign in to comment.