Keep bookmarklet preferences persistent across sessions/pages #43

Open
marcelduran opened this Issue Jun 20, 2012 · 1 comment

Comments

Projects
None yet
2 participants
@marcelduran
Owner

marcelduran commented Jun 20, 2012

Have an invisible iframe pointing to yslow.org/preferences.html then use localStorage on this page and communicate back to YSlow bookmarklet through postMessage.

+------------------------------+
|                              |
|      Host page: foo.com      |
|                              |
|------------------------------|
|                              |
|  YSlow bookmarklet           |
|    * postMessage <--------+  |
|                           |  |
|  +---------------------+  |  |
|  | yslow.org/pref.html |  |  |
|  | * localStorage      |  |  |
|  | * postMessage <--------+  |
|  +---------------------+     |
|                              |
+------------------------------+

@ghost ghost assigned marcelduran Jun 20, 2012

@stoyan

This comment has been minimized.

Show comment
Hide comment

stoyan commented Jun 20, 2012

like

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment