[wp-trac] [WordPress Trac] #39289: TinyMCE wpview: make inserting oEmbed previews smoother
WordPress Trac
noreply at wordpress.org
Thu Dec 15 02:12:27 UTC 2016
#39289: TinyMCE wpview: make inserting oEmbed previews smoother
--------------------------+-----------------
Reporter: azaozz | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.8
Component: TinyMCE | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------
Currently when an "embeddable" URL is pasted in the editor, we make a
request to the server asking if the URL is embeddable, then the server
makes a request to the oEmbed provider to get the actual HTML, catches it
and sends it as reply to the initial request.
This usually takes several seconds, sometimes even more than 10. During
that time in the editor we display the URL that was originally pasted.
When the response arrives we insert a new wpview. In many cases that
wpview contains an iframe that only then starts to load, extending the
whole process even more. While the iframe document is loading we keep
resizing the iframe to match the height.
All of this is pretty "jumpy", with one "big jump" when the URL is
replaced with the wpview, and possibly several smaller jumps while the
iframe is loading.
All that "jumpiness" is not a good UX. We can try to detect when an URL is
"embeddable" right after it is pasted, then insert some sort of a
placeholder with similar dimensions while waiting for the embed HTML, so
the users can continue typing.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39289>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list