numscull numscull - 29 days ago 8
HTML Question

API embeded code is sending <style>, how do I ignore?

I am using embeded JS code for a service I need included in my website. It is embedding its own

<style>
CSS along with the HTML elements. It is a new service and there is no support for sending anything else. How can I ignore the
<style>
so I can use my own CSS to integrate into the theme? I don't want to resort to using !important flags.

Answer

I ended up adding !important to my CSS file since the JS file is loaded asynchronously and it would be more work to keep checking until it is loaded to remove the <style>.

Comments