Title: Dropdown menu is expanded while loading
Last modified: August 9, 2022

---

# Dropdown menu is expanded while loading

 *  [andyganesh](https://wordpress.org/support/users/andyganesh/)
 * (@andyganesh)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/dropdown-menu-is-expanded-while-loading/)
 * Hi everyone.
 * I have polylang elementor switcher (dropdown) in header section. While I am loading
   any website page, the dropdown menu expands for 1 second and then collapses (
   as it should be). This is how it looks during page loading: [https://ibb.co/mF8SGV1](https://ibb.co/mF8SGV1)
   and this is how it looks when the page is loaded (it should be like this all 
   the time): [https://ibb.co/ftgYM7v](https://ibb.co/ftgYM7v)
 * Please somebody help me and thank you in advance!

Viewing 1 replies (of 1 total)

 *  Plugin Author [Pacotole](https://wordpress.org/support/users/pacotole/)
 * (@pacotole)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/dropdown-menu-is-expanded-while-loading/#post-15927346)
 * Hi,
 * Language switcher styles are added only when widget is rendered and they are 
   enqueued at the end of the page. This causes them to load later and temporarily
   have no styles.
 * Try adding this code in your theme functions.php to enqueue CSS at page header:
 *     ```
       add_action( 'wp_enqueue_scripts', function() {
         wp_enqueue_style( 'cpel-language-switcher' );
       } );
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Dropdown menu is expanded while loading’ is closed to new replies.

 * ![](https://ps.w.org/connect-polylang-elementor/assets/icon-256x256.png?rev=2676314)
 * [Connect Polylang for Elementor](https://wordpress.org/plugins/connect-polylang-elementor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/connect-polylang-elementor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/connect-polylang-elementor/)
 * [Active Topics](https://wordpress.org/support/plugin/connect-polylang-elementor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/connect-polylang-elementor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/connect-polylang-elementor/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Pacotole](https://wordpress.org/support/users/pacotole/)
 * Last activity: [3 years, 9 months ago](https://wordpress.org/support/topic/dropdown-menu-is-expanded-while-loading/#post-15927346)
 * Status: not resolved