It works fine on a non-bubble html page. When inserting in Bubble, the widget displays when the window is resized in any direction. I’m guessing their might be some conflicting css elements between Bubble and the customers style. Any thoughts?
You nailed it @mishav. This solved everything, thanks!
Just to detail the progress of your solution:
By putting a conditional if() statement into the html code to listen for a page load, the element appeared right away on every load (there was no longer a need to resize the window for the widget to appear in the window)
By putting the cdn script in the header, there was no longer any CSS issues (the strange background colors and becoming offset slightly)
I notice that the UI is much better when their widget is forced into ‘mobile mode’, labeled as “@phone-tablet:” in their stylesheet. Is there anyway to force “@phone-tablet:” for all window sizes via inline CSS on Bubble’s side?
Depends on how the widget references the styles, if @phone-tablet is a class name, you might have some luck with using JQuery to set a class on the container element.
Edit: Another possibility is to get their un-minified scripts/css and alter things, then load the altered script.