Friday, 15 July 2011

javascript - Chrome extension event page persistent for certain pages? -



javascript - Chrome extension event page persistent for certain pages? -

i have event page sets big connection indexeddb.

the extension uses database quite through message passing , wondering whether best maintain background persistent page alone.

i thinking maybe opening port connection , not closing it, bad idea?

when comes indexeddb can have 1 connection @ time, meaning if intend of having other pages (frames) access it, leaving open not work. however, if using messaging system, have windows talk same point of access , hence maintain connection open. it's not bad thought if plan on doing that, maintain in mind if allow multiple instances of application run in parallel, might not idea.

javascript google-chrome-extension

No comments:

Post a Comment