Site logo

Archived topic

Javascript widgets in top bar

3 replies · Started by Aisling on January 26, 2019

Viewing posts 1–4 of 4

Hi there

I am wondering if there is a way to resolve my issue

In my topbar I have two widgets from an ecommerce site ecwid

The two widgets I have are a product search and cart.
The following is the code for the product search. There is simliar for the cart

<script type="text/javascript" src="https://app.ecwid.com/script.js? " charset="utf-8"></script> <script type="text/javascript"> xSearch("id=my-search-"); </script>

My issue is that when the page loads, it loads the rest of the page first and then maybe two seconds later the page drops down to load the top bar with the two widgets present. Do you have any suggestions on how to fix this.

(Support has been great so far)

Many thanks

Aisling

Hi there,

if you were able to force that script to load immediately it would cause render blocking. in other words you would have to wait for that to load before the rest of the content was displayed. Which wouldn't be good.

You may need to speak with ECWID to see if there is anything they can do to improve the request time.

Great

Thank you for your help. I will contact ecwid and see if they have any suggestions

Aisling

You're welcome

This archived topic is closed to new replies.