Selaa lähdekoodia

perf improvement

Olivier Massot 5 vuotta sitten
vanhempi
commit
fe06000f25

+ 0 - 11
ot_templating/Resources/Private/Partials/Modern/Assets.html

@@ -76,11 +76,6 @@ Assets included with the VHS viewhelpers
                standalone="{force_standalone}"
                rewrite="0"/>
 
-<f:comment><!-- includes all shortcodes ; can be removed if none of those plugins are used --></f:comment>
-<v:asset.style name="shortcodes"
-               path="{assets_dir}/style/shortcodes/shortcodes.css"
-               standalone="{force_standalone}"/>
-
 <f:comment><!-- main stylesheet of the template --></f:comment>
 <v:asset.style name="style-css"
                path="{assets_dir}/style/style.css"
@@ -205,12 +200,6 @@ Assets included with the VHS viewhelpers
                 dependencies="jquery"
                 defer="1"/>
 
-<v:asset.script name="revolution-migration"
-                path="{assets_dir}/script/revolution/extensions/revolution.extension.migration.min.js"
-                standalone="{force_standalone}"
-                dependencies="jquery"
-                defer="1"/>
-
 <v:asset.script name="revolution-parallax"
                 path="{assets_dir}/script/revolution/extensions/revolution.extension.parallax.min.js"
                 standalone="{force_standalone}"

+ 5 - 5
ot_templating/Resources/Private/Partials/Modern/Carousel.html

@@ -42,13 +42,13 @@
                             data-param10=""
                             data-description="">
 
-                            <img src="{image.url}"
+                            <f:image src="{image.url}"
                                  alt="{image.alternative}"
-                                 data-bgposition="center center"
-                                 data-bgfit="cover"
-                                 data-bgrepeat="no-repeat"
                                  class="rev-slidebg"
-                                 data-no-retina>
+                                 width="1600c"
+                                 height="600c"
+                                 data="{bgposition: 'center center', bgfit: 'cover', bgrepeat: 'no-repeat', no-retina: ''}"
+                            />
                         </li>
 
                     </f:for>