Title: Extra Height Attribute Added to Elements When Using LiteSpeed Cache
Last modified: March 6, 2025

---

# Extra Height Attribute Added to Elements When Using LiteSpeed Cache

 *  Resolved [Alex 六十 Karpov](https://wordpress.org/support/users/justsmilepeople/)
 * (@justsmilepeople)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/extra-height-attribute-added-to-elements-when-using-litespeed-cache/)
 * Hi,
 * I’ve noticed that when I enable LiteSpeed Cache, an extra height attribute is
   being added to certain elements on my site. Disabling all features in LiteSpeed
   > Toolbox > Debug resolves the issue, indicating that LiteSpeed Cache is the 
   cause. (LiteSpeed is disabled for now because of this issue)
 * Problem class name
 *     ```wp-block-code
       woocommerce-product-gallery woocommerce-product-gallery--with-images woocommerce-product-gallery--columns-4 images gallery-has-thumbnails
       ```
   
 * I can’t handle this issue for long time, couple months or more.
 * Here is a screenshot that illustrates the problem: [[screenshot link](https://i.vgy.me/eAcpCE.png)]
 * Could you please help me with a solution to remove this extra CSS attribute?
 * Best regards, Alex
    -  This topic was modified 1 year, 3 months ago by [Alex 六十 Karpov](https://wordpress.org/support/users/justsmilepeople/).

Viewing 13 replies - 1 through 13 (of 13 total)

 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/extra-height-attribute-added-to-elements-when-using-litespeed-cache/#post-18348364)
 * please provide the report number
 * you can get it in LiteSpeed Cache -> Toolbox -> Report -> click “send to LiteSpeed”
 *  Thread Starter [Alex 六十 Karpov](https://wordpress.org/support/users/justsmilepeople/)
 * (@justsmilepeople)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/extra-height-attribute-added-to-elements-when-using-litespeed-cache/#post-18348601)
 * Report number: **PSXFOBED**
 * Thank\ you for support
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/extra-height-attribute-added-to-elements-when-using-litespeed-cache/#post-18355099)
 * on this page [https://sobolluxury.ru/gallery/shuba-iz-sobolya-gabriella-lyuks-anglijskij-vorotnik/](https://sobolluxury.ru/gallery/shuba-iz-sobolya-gabriella-lyuks-anglijskij-vorotnik/)
 * I don’t see that height as you do
 * ![](https://i0.wp.com/i.imgur.com/NErn8qh.png?ssl=1)
 * did I miss anything ?
 *  Thread Starter [Alex 六十 Karpov](https://wordpress.org/support/users/justsmilepeople/)
 * (@justsmilepeople)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/extra-height-attribute-added-to-elements-when-using-litespeed-cache/#post-18355116)
 * That’s because the plugin is turned off. I turned on just now kindly check it
   ASAP because after your investigation and message here I want to turn it off 
   again.
 * Keep in ming to turn on mobile view
 * [https://i.vgy.me/Rm0sTC.png](https://i.vgy.me/Rm0sTC.png) screenshot 16:53 (
   +3GMT) 11/03/2025
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/extra-height-attribute-added-to-elements-when-using-litespeed-cache/#post-18355130)
 * weird, could you please try reset to default setting first ? you can reset it
   in toolbox -> improt/export -> reset to default , see how it goes on default 
   setting
 *  Thread Starter [Alex 六十 Karpov](https://wordpress.org/support/users/justsmilepeople/)
 * (@justsmilepeople)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/extra-height-attribute-added-to-elements-when-using-litespeed-cache/#post-18355156)
 * That true. I am done. I’ve reseted to default and cleaned full cache.
 * I can see that mistake is gone) what i have to do next 😀
    -  This reply was modified 1 year, 2 months ago by [Alex 六十 Karpov](https://wordpress.org/support/users/justsmilepeople/).
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/extra-height-attribute-added-to-elements-when-using-litespeed-cache/#post-18355189)
 * now please try to enable back the options you had , let’s narrow down which option
   caused issue, then we will see what to next
 *  Thread Starter [Alex 六十 Karpov](https://wordpress.org/support/users/justsmilepeople/)
 * (@justsmilepeople)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/extra-height-attribute-added-to-elements-when-using-litespeed-cache/#post-18355220)
 * So, I’ve tried to activate any preset from the reference to the middle one, and
   the issue is appearing again.
 * Essential, Basic, and Advanced presets all create that issue.
 * Update: Just now, I’ve reset all settings again. I see the LiteSpeed hit. Look
   on. Did not apply any presets to all settings. Wait your responce
    -  This reply was modified 1 year, 2 months ago by [Alex 六十 Karpov](https://wordpress.org/support/users/justsmilepeople/).
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/extra-height-attribute-added-to-elements-when-using-litespeed-cache/#post-18355255)
 * please try reset tto default , then , not apply profile , but manually enable
   options in setting, see if you can narrow down which one
 *  Thread Starter [Alex 六十 Karpov](https://wordpress.org/support/users/justsmilepeople/)
 * (@justsmilepeople)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/extra-height-attribute-added-to-elements-when-using-litespeed-cache/#post-18355327)
 * I suppose JS Combine is the answer.
 * We do not use something special is the default woocommerce gallery
    -  This reply was modified 1 year, 2 months ago by [Alex 六十 Karpov](https://wordpress.org/support/users/justsmilepeople/).
 *  Thread Starter [Alex 六十 Karpov](https://wordpress.org/support/users/justsmilepeople/)
 * (@justsmilepeople)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/extra-height-attribute-added-to-elements-when-using-litespeed-cache/#post-18355930)
 * Thank you for your support! 💓
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/extra-height-attribute-added-to-elements-when-using-litespeed-cache/#post-18357217)
 * okay, then you could also try to [find and exclude](https://docs.litespeedtech.com/lscache/lscwp/ts-optimize/#find-and-exclude-the-problematic-files)
   the specific javascript that caused it
 *  Thread Starter [Alex 六十 Karpov](https://wordpress.org/support/users/justsmilepeople/)
 * (@justsmilepeople)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/extra-height-attribute-added-to-elements-when-using-litespeed-cache/#post-18365815)
 * Great thank you for support!

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘Extra Height Attribute Added to Elements When Using LiteSpeed Cache’ 
is closed to new replies.

 * ![](https://ps.w.org/litespeed-cache/assets/icon-256x256.png?rev=2554181)
 * [LiteSpeed Cache](https://wordpress.org/plugins/litespeed-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/litespeed-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/litespeed-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/litespeed-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/litespeed-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/litespeed-cache/reviews/)

## Tags

 * [height](https://wordpress.org/support/topic-tag/height/)

 * 13 replies
 * 2 participants
 * Last reply from: [Alex 六十 Karpov](https://wordpress.org/support/users/justsmilepeople/)
 * Last activity: [1 year, 2 months ago](https://wordpress.org/support/topic/extra-height-attribute-added-to-elements-when-using-litespeed-cache/#post-18365815)
 * Status: resolved