Preventing Reflow
-
I am submitting this with the hope that you will consider making this change to the MetaSlider plugin to optimize browser display of slide shows.
RE: https://developers.google.com/speed/docs/insights/browser-reflow
I made the following change in ml-slider\inc\slider\metaslider.class.php. In the get_container_style() function, I replaced:
$style = "max-width: {$this->get_setting( 'width' )}px;";
with:
$style = "max-width: {$this->get_setting( 'width' )}px;max-height: {$this->get_setting( 'height' )}px;";
This change eliminates the browser reflow that occurs when the MetaSlider plugin slideshow is displayed by the browser. This change works in my case with my slide show. There may be other changes required to prevent browser reflow if different MetaSlider options are selected.
Thank you!
- The topic ‘Preventing Reflow’ is closed to new replies.