title: Chrome extensions - unload event page immediately
body: <p>I'm new to Chrome extension developing. I've written an extension that shows a notification every time a new tab is created. It works, however if I open a tab and immediately open another tab, the notification will be shown only for the first tab.</p>
  
  <p>On the <a href="http://developer.chrome.com/extensions/event_pages.html#lifetime" rel="nofollow">Chrome extension documentation</a> I read this:</p>
  
  <blockquote>
    <p>Once the event page has been idle a short time (a few seconds), the chrome.runtime.onSuspend event is dispatched.</p>
  </blockquote>
  
  <p>Apparently it explains why there was no notification for the second tab. Is it possible to unload the event page immediately (i.e. once the notification is shown), without waiting a few seconds?</p>
  
  <p>This is my code:</p>
  
  <p><strong>manifest.json</strong></p>
  
  <pre><code>{
      "name": "test",
      "version": "1.0",
      "description": "notification test",
      "manifest_version": 2,
      "permissions": [ "tabs", "notifications" ],
      "background": { "scripts": ["background.js"], "persistent": false }
  }
  </code></pre>
  
  <p><strong>background.js</strong></p>
  
  <pre><code>var notification = webkitNotifications.createNotification(
      '48.png',
      'hello',
      'this is a test'
  );
  
  chrome.tabs.onCreated.addListener(function(tab) {
      notification.show();
  });
  </code></pre>