Yakje Posted March 25, 2015 Share Posted March 25, 2015 I ran my website through http://gtmetrix.com/ and the following issue came up: The following image(s) are missing width and/or height attributes. https://imkershop.nl/242-tm_home_default/cadeaukaart-5-.jpg (Dimensions: 200 x 200) https://imkershop.nl/415-tm_home_default/starterspakket-deluxe-10-delig.jpg (Dimensions: 200 x 200) (2 uses) https://imkershop.nl/497-tm_home_default/imkerjack-model-deluxe-ronde-hoed-.jpg (Dimensions: 200 x 200) https://imkershop.nl/653-tm_home_default/starterspakket-deluxe-bijenwaskaarsen-maken.jpg (Dimensions: 200 x 200) https://imkershop.nl/679-tm_home_default/pre-sale-mitezapper-deluxeset-frame-en-controlebox.jpg(Dimensions: 200 x 200) https://imkershop.nl/760-tm_home_default/draadspanner-ergonomisch-deluxe.jpg (Dimensions: 200 x 200) https://imkershop.nl/904-780-tm_home_default/bijen-houden.jpg (Dimensions: 200 x 200) https://imkershop.nl/905-781-tm_home_default/bijen-in-beeld.jpg (Dimensions: 200 x 200) https://imkershop.nl/906-782-tm_home_default/-informatieblad-biologische-bijenhouderij-voor-certificering.jpg(Dimensions: 200 x 200) https://imkershop.nl/nl-default-tm_home_default/spijkertjes-voor-het-maken-van-ramen.jpg (Dimensions: 200 x 200) I noticed that all the images above are images featured in the homepage modules: "blocknewproducts", "blockbestsellers" & "blockspecials" You can take a look at my site over here: http://goo.gl/RqgDpw So it seems to me that something is wrong about the coding in those modules? I was hoping for anyone who knows how to get this fixed? Link to comment Share on other sites More sharing options...
tuk66 Posted March 26, 2015 Share Posted March 26, 2015 These width and height attributes are not mandatory. Browser still can display images correctly. Link to comment Share on other sites More sharing options...
Yakje Posted March 26, 2015 Author Share Posted March 26, 2015 I know the browser is still able to display them, but it is not how they should be loaded and takes more time. I want to speed up my site and this is one of the things i want to get fixed Link to comment Share on other sites More sharing options...
tuk66 Posted March 26, 2015 Share Posted March 26, 2015 You should ask the theme developer. This is the only competent person. Link to comment Share on other sites More sharing options...
javi_snow Posted April 30, 2015 Share Posted April 30, 2015 I tested my website through http://gtmetrix.com/ and has the same problem, It slows the load of the web anyone has more information about this ? Link to comment Share on other sites More sharing options...
PascalVG Posted May 1, 2015 Share Posted May 1, 2015 You could check if your file: themes/<your theme folder>/modules/blockspecials/blockspecials.tpl: (make backup!!) has the following red line defined : <div class="left-block"> <div class="product-image-container"> <a class="product_img_link" href="{$product.link|escape:'html':'UTF-8'}" title="{$product.name|escape:'html':'UTF-8'}" itemprop="url"> <img class="replace-2x img-responsive" src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')|escape:'html':'UTF-8'}" alt="{if !empty($product.legend)}{$product.legend|escape:'html':'UTF-8'}{else}{$product.name|escape:'html':'UTF-8'}{/if}" title="{if !empty($product.legend)}{$product.legend|escape:'html':'UTF-8'}{else}{$product.name|escape:'html':'UTF-8'}{/if}" {if isset($homeSize)} width="{$homeSize.width}" height="{$homeSize.height}"{/if} itemprop="image" /> </a> Link to comment Share on other sites More sharing options...
ballashop Posted June 15, 2015 Share Posted June 15, 2015 I ran my website through http://gtmetrix.com/ and the following issue came up: The following image(s) are missing width and/or height attributes. https://imkershop.nl/242-tm_home_default/cadeaukaart-5-.jpg (Dimensions: 200 x 200) https://imkershop.nl/415-tm_home_default/starterspakket-deluxe-10-delig.jpg (Dimensions: 200 x 200) (2 uses) https://imkershop.nl/497-tm_home_default/imkerjack-model-deluxe-ronde-hoed-.jpg (Dimensions: 200 x 200) https://imkershop.nl/653-tm_home_default/starterspakket-deluxe-bijenwaskaarsen-maken.jpg (Dimensions: 200 x 200) https://imkershop.nl/679-tm_home_default/pre-sale-mitezapper-deluxeset-frame-en-controlebox.jpg(Dimensions: 200 x 200) https://imkershop.nl/760-tm_home_default/draadspanner-ergonomisch-deluxe.jpg (Dimensions: 200 x 200) https://imkershop.nl/904-780-tm_home_default/bijen-houden.jpg (Dimensions: 200 x 200) https://imkershop.nl/905-781-tm_home_default/bijen-in-beeld.jpg (Dimensions: 200 x 200) https://imkershop.nl/906-782-tm_home_default/-informatieblad-biologische-bijenhouderij-voor-certificering.jpg(Dimensions: 200 x 200) https://imkershop.nl/nl-default-tm_home_default/spijkertjes-voor-het-maken-van-ramen.jpg (Dimensions: 200 x 200) I noticed that all the images above are images featured in the homepage modules: "blocknewproducts", "blockbestsellers" & "blockspecials" image-dimensions.jpg You can take a look at my site over here: http://goo.gl/RqgDpw So it seems to me that something is wrong about the coding in those modules? I was hoping for anyone who knows how to get this fixed? did you solve it? Link to comment Share on other sites More sharing options...
cockpitinferno Posted August 6, 2015 Share Posted August 6, 2015 (edited) hello i have the same issue, i tried to add this in the module tpl/modules/blockspecials/blockspecials.tpl <a class="products-block-image" href="{$special.link|escape:'html':'UTF-8'}"> <img class="replace-2x img-responsive" src="{$link->getImageLink($special.link_rewrite, $special.id_image, 'small_default')|escape:'html':'UTF-8'}" alt="{$special.legend|escape:'html':'UTF-8'}" title="{$special.name|escape:'html':'UTF-8'}" {if isset($small_defaultSize)} width="{$small_defaultSize.width}" height="{$small_defaultSize.height}"{/if} /> </a> i tried all kind of thins homeSize, as you posted above, small Size. nothin changes i still do not have sizes on my developper tool from firefox. anyone could help. thanks a lot. it works with medium size and home size ont block new products but not with small size, i don't know why. Edited August 6, 2015 by cockpitinferno (see edit history) Link to comment Share on other sites More sharing options...
cockpitinferno Posted August 14, 2015 Share Posted August 14, 2015 up, anyone could help please? 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now