[wp-trac] [WordPress Trac] #43978: Avoid flickering on the Tools / Export page

WordPress Trac noreply at wordpress.org
Sat May 5 20:15:13 UTC 2018


#43978: Avoid flickering on the Tools / Export page
-------------------------+-------------------------------------------------
 Reporter:  birgire      |      Owner:  (none)
     Type:  defect       |     Status:  new
  (bug)                  |
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Export       |    Version:
 Severity:  normal       |   Keywords:  needs-patch has-screenshots good-
  Focuses:               |  first-bug
  administration         |
-------------------------+-------------------------------------------------
 The export filters are hidden by default on the Tools / Export page.

 But it's only hidden with Javascript in {{{wp-admin/export.php}}}:

 {{{
 jQuery(document).ready(function($){
     var form = $('#export-filters'),
         filters = form.find('.export-filters');
     filters.hide();

 }}}

 The filters can therefore be visible for a short time, before they are
 hidden.

 Here the {{{filters.hide()}}} will add a {{{display:none;}}} inline
 styling to the corresponding filters.

 We can avoid this flickering with CSS, something like:

 {{{
 #export-filters .export-filters {
     display: none;
 }

 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/43978>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list