OLD | NEW |
1 <div id="pageData-name" class="pageData">Event Pages</div> | 1 <h1>Event Pages</h1> |
2 <div id="pageData-showTOC" class="pageData">true</div> | 2 |
3 | 3 |
4 <p> | 4 <p> |
5 Event pages are very similar to | 5 Event pages are very similar to |
6 <a href="background_pages.html">background pages</a>, | 6 <a href="background_pages.html">background pages</a>, |
7 with one important difference: | 7 with one important difference: |
8 event pages are loaded only when they are needed. | 8 event pages are loaded only when they are needed. |
9 When the event page is not actively doing something, | 9 When the event page is not actively doing something, |
10 it is unloaded, freeing memory and other system resources. | 10 it is unloaded, freeing memory and other system resources. |
11 </p> | 11 </p> |
12 | 12 |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 <code><a href="extension.html#method-getBackgroundPage">chrome.extension.getBa
ckgroundPage()</a></code>, | 113 <code><a href="extension.html#method-getBackgroundPage">chrome.extension.getBa
ckgroundPage()</a></code>, |
114 switch to | 114 switch to |
115 <code><a href="runtime.html#method-getBackgroundPage">chrome.runtime.getBackgr
oundPage()</a></code> | 115 <code><a href="runtime.html#method-getBackgroundPage">chrome.runtime.getBackgr
oundPage()</a></code> |
116 instead. The newer method is asynchronous so that it can start the event | 116 instead. The newer method is asynchronous so that it can start the event |
117 page if necessary before returning it. | 117 page if necessary before returning it. |
118 | 118 |
119 <li>If you're using <a href="messaging.html">message passing</a>, be sure | 119 <li>If you're using <a href="messaging.html">message passing</a>, be sure |
120 to close unused message ports. The event page will not shut down until all | 120 to close unused message ports. The event page will not shut down until all |
121 message ports are closed. | 121 message ports are closed. |
122 </ol> | 122 </ol> |
123 </p> | 123 </p> |
OLD | NEW |