Inlined style in HTML
-
Noticed the plugin is adding an inline style into the html: https://i.imgur.com/AH1h7Pr.jpg
Had couple of questions and suggetions:
1) Is this necessary? whats the point of this inline style? (sorry if the questions are stupid or basic, im newbie to css but still think it has room for improvement)
2) Can this be minified automatically by the plugin in case its compulsory?<style>@-webkit-keyframes bgslide{from{background-position-x: 0;}to{background-position-x: -200%;}}@keyframes bgslide{from{background-position-x: 0;}to{background-position-x: -200%;}}.wpp-widget-placeholder{margin: 0 auto; width: 60px; height: 3px; background: #dd3737; background: -webkit-gradient(linear, left top, right top, from(#dd3737), color-stop(10%, #571313), to(#dd3737)); background: linear-gradient(90deg, #dd3737 0%, #571313 10%, #dd3737 100%); background-size: 200% auto; border-radius: 3px; -webkit-animation: bgslide 1s infinite linear; animation: bgslide 1s infinite linear;}</style>
3) Can it have an id to identify it fast for anybody where it comes from?
<style id=”wpp-inline”> or whatever it can be for fast identification and manipulation just in case?
- The topic ‘Inlined style in HTML’ is closed to new replies.