Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Fix hover effect loading glitch #35
+26
−20
Conversation
|
The timer also ensured that the hover text would eventually go away, on
pages where the hover text was showing inline forever.
…
|
|
Well my claim is that the hover text will never show inline again with this patch. :) |
|
Try it on dictionary.com :). Let’s see!
…
|
|
The dictionary.com display issue is not a symptom of the HTML loading before the CSS, which the initial commit was for; it is due to ancestor elements to the inverted word having a style of |
biancadanforth
closed this
Dec 13, 2017
biancadanforth
referenced this pull request
Dec 14, 2017
Merged
Fix hover effect loading glitch; only flip words inside p elements #40
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
biancadanforth commentedDec 13, 2017
•
Edited 2 times
-
biancadanforth
Dec 13, 2017
-
biancadanforth
Dec 13, 2017
Claim: This solves issue #34 .
There were cases where the content script would inject HTML into a page for the hover effect before the CSS would be loaded for that page by the background script. This resulted in seeing the contents of the hover effect in the page briefly before the CSS was applied. Now, we properly ensure the CSS is loaded before injecting the HTML in the content script.
Since the timers for the effect were added mostly to mitigate the effect of this UI bug, I have removed them to make the effect less subtle (Issue #22). Now the inverted words stay inverted and the hover effect also persists on the page.
@gregglind Can you test this branch to check if you still get the loading glitch you saw below?
