[wp-trac] [WordPress Trac] #28788: wpviews: whenever a view is updated or inserted, all the views are refreshed
WordPress Trac
noreply at wordpress.org
Sat Aug 16 18:42:40 UTC 2014
#28788: wpviews: whenever a view is updated or inserted, all the views are
refreshed
--------------------------+-------------------------
Reporter: avryl | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.0
Component: TinyMCE | Version: 3.9
Severity: normal | Resolution:
Keywords: has-patch | Focuses: javascript
--------------------------+-------------------------
Changes (by avryl):
* keywords: needs-patch => has-patch
Comment:
So the current problem: whenever you insert a view, paste a view or edit a
view, every single view re-renders. For paste it's even worse. Whenever
you paste *anything*, every single view re-renders. If it's just a
gallery, it's not that annoying, but it there are iframes to load, it's
very visible and annoying.
With the patch the render function check whether or not all the viewnodes
for a particular instance have been rendered before. One unrendered view
for that instance (which means that there are more of the same shortcodes
in the editor) triggers rendering for all the viewnodes in that instance,
but not all the viewnodes.
I also updated the refreshView function so that only the viewnodes for
that instance are refreshed.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28788#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list