| @@ -87,9 +87,10 @@ | ||
| 87 | 87 | public function ui_metadata(): array { |
| 88 | 88 | return array( |
| 89 | 89 | 'label' => __( 'Turbo Render', 'xspeed' ), |
| 90 | 90 | 'icon' => 'Layers', |
| 91 | - 'description' => __( 'Paints the top of your page first and brings the rest in as visitors scroll. Every section still loads in full.', 'xspeed' ), | |
| 91 | + 'description' => __( 'Shows the top of each page first and the rest as visitors scroll.', 'xspeed' ), | |
| 92 | + 'group' => 'performance', | |
| 92 | 93 | ); |
| 93 | 94 | } |
| 94 | 95 | |
| 95 | 96 | public function settings_schema(): array { |
| @@ -97,9 +98,9 @@ | ||
| 97 | 98 | 'enabled' => array( |
| 98 | 99 | 'type' => 'bool', |
| 99 | 100 | 'default' => false, |
| 100 | 101 | 'label' => __( 'Render as visitors scroll', 'xspeed' ), |
| 101 | - 'description' => __( 'Lets the browser spend its first moments on what visitors actually see, then render the lower sections just before they scroll into view. The content of your page is unchanged — it simply arrives in a smarter order.', 'xspeed' ), | |
| 102 | + 'description' => __( 'The browser draws what visitors see first and draws lower sections just before they scroll to them. Your content does not change.', 'xspeed' ), | |
| 102 | 103 | ), |
| 103 | 104 | 'skip_first' => array( |
| 104 | 105 | 'type' => 'int', |
| 105 | 106 | 'default' => self::DEFAULT_SKIP_FIRST, |
| @@ -105,21 +106,25 @@ | ||
| 105 | 106 | 'default' => self::DEFAULT_SKIP_FIRST, |
| 106 | 107 | 'min' => 1, |
| 107 | 108 | 'max' => 10, |
| 108 | 109 | 'label' => __( 'Sections to render immediately', 'xspeed' ), |
| 109 | - 'description' => __( 'How many sections at the top of the page are rendered right away, before any deferring begins. The default of 2 suits most layouts. Increase it if a section near the top of your page appears a moment late.', 'xspeed' ), | |
| 110 | + 'description' => __( 'How many sections at the top are drawn right away. The default of 2 suits most pages; raise it if a section near the top appears late.', 'xspeed' ), | |
| 111 | + 'dependsOn' => array( 'field' => 'enabled' ), | |
| 110 | 112 | ), |
| 111 | 113 | 'section_classes' => array( |
| 112 | 114 | 'type' => 'list', |
| 113 | 115 | 'default' => self::DEFAULT_CLASSES, |
| 114 | 116 | 'label' => __( 'Section classes', 'xspeed' ), |
| 115 | - 'description' => __( 'Tells xSpeed which parts of your page count as sections. The defaults cover Elementor, Divi, Bricks, Oxygen, and Beaver Builder — and when none of them match, xSpeed falls back to your page\'s own top-level sections automatically. Add a class here only if you want to target something specific.', 'xspeed' ), | |
| 117 | + 'description' => __( 'CSS classes that mark a section. The defaults cover the main page builders, and other themes are detected on their own.', 'xspeed' ), | |
| 118 | + 'advanced' => true, | |
| 119 | + 'dependsOn' => array( 'field' => 'enabled' ), | |
| 116 | 120 | ), |
| 117 | 121 | 'excluded_classes' => array( |
| 118 | 122 | 'type' => 'list', |
| 119 | 123 | 'default' => array(), |
| 120 | 124 | 'label' => __( 'Excluded classes', 'xspeed' ), |
| 121 | - 'description' => __( 'Sections with any of these classes always render right away. Use this when a design overlaps its neighbours — a card that hangs over the section below it gets cut off at the boundary when either section is deferred.', 'xspeed' ), | |
| 125 | + 'description' => __( 'Sections with any of these classes are always drawn right away. Add one here if part of a section gets cut off where it overlaps the next.', 'xspeed' ), | |
| 126 | + 'dependsOn' => array( 'field' => 'enabled' ), | |
| 122 | 127 | ), |
| 123 | 128 | ); |
| 124 | 129 | } |
| 125 | 130 | |