Ecwid.getStaticBaseUrl

Returns the base URL for static Ecwid files, like images and CSS, with the ’/’ at the end.

Get Static Base Url code example

var StaticBaseUrl = Ecwid.getStaticBaseUrl();

console.log(StaticBaseUrl);

// prints
// "https://d3fi9i0jj23cau.cloudfront.net/gz/"

Subscribe to the Ecwid.OnAPILoaded JS API event to ensure availability of this function.