Skip to content

Loading…

Keep bookmarklet preferences persistent across sessions/pages #43

Open
marcelduran opened this Issue · 1 comment

2 participants

@marcelduran
Owner

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 <--------+  |
|  +---------------------+     |
|                              |
+------------------------------+

@marcelduran marcelduran was assigned
@stoyan

like

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.