Title: CSS overwrite loads slow
Last modified: December 1, 2020

---

# CSS overwrite loads slow

 *  Resolved [matpakka](https://wordpress.org/support/users/matpakka/)
 * (@matpakka)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/css-overwrite-loads-slow/)
 * Hello!
    I have a custom post type added to the front page with advanced search
   filter. This works, except from the css
 * **CUSTOM CSS **<– _want this to load immediately_
 *     ```
       .select2-selection--single {
           height: 48px !important;
       }
       ```
   
 * **ORIGINAL CSS** (_/plugins/geodirectory/vendor/ayecode/wp-ayecode-ui/assets/
   css/ayecode-ui-compatibility.css?ver=4.3.1_)
 *     ```
       .select2-selection--single {
           height: calc(1.5em + .75rem + 2px) !important;
       }
       ```
   
 * When the page is loaded it takes a few extra seconds before the custom css overwrites
   the original css. This affects the input field height.
 * I have tried with a caching and combining of css files.
    Do you have any other
   suggestions?
    -  This topic was modified 5 years, 6 months ago by [matpakka](https://wordpress.org/support/users/matpakka/).
    -  This topic was modified 5 years, 6 months ago by [matpakka](https://wordpress.org/support/users/matpakka/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [Stiofan](https://wordpress.org/support/users/stiofansisland/)
 * (@stiofansisland)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/css-overwrite-loads-slow/#post-13775845)
 * Hi [@matpakka](https://wordpress.org/support/users/matpakka/),
 * This is not specifically GD related, however, the class “select2-selection–single”
   is a sudo class that is added by javascript after page load, so try targeting
   the field with another class if you can.
 * Stiofan

Viewing 1 replies (of 1 total)

The topic ‘CSS overwrite loads slow’ is closed to new replies.

 * ![](https://ps.w.org/geodirectory/assets/icon-256x256.jpg?rev=2778361)
 * [GeoDirectory - WP Business Directory Plugin and Classified Listings Directory](https://wordpress.org/plugins/geodirectory/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/geodirectory/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/geodirectory/)
 * [Active Topics](https://wordpress.org/support/plugin/geodirectory/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/geodirectory/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/geodirectory/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Stiofan](https://wordpress.org/support/users/stiofansisland/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/css-overwrite-loads-slow/#post-13775845)
 * Status: resolved