tonickkozlov / vue-tweet-embed

Embed tweets in your vue.js app
111 stars 27 forks source link

Compiling error #29

Open jamiecarter7 opened 4 years ago

jamiecarter7 commented 4 years ago

When I build my site the pages where the timeline appears are breaking leaving my site rendered incorrectly

Digging in the code I find:

Uncaught SyntaxError: Unexpected token <

Then looking at my source code there is an src link with no https:, the issue is the // is being seen as js and the rest of the code on this line seems to be ignored breaking the rendering

<script src="//platform.twitter.com/widgets.js" defer></script>

Screenshot 2019-09-22 14 42 04 Screenshot 2019-09-22 14 42 23

you can see google console seems to suggest the following text after the // is a comment.

tonickkozlov commented 4 years ago

Hi @jamiecarter7 ,

Thanks for feedback. Which browser version and library version are you using?

robsonsobral commented 4 years ago

Why not to use only HTTPS? Mixed content occurs only when initial HTML is loaded over a secure HTTPS connection, but other resources don't. A script loaded over HTTPS on an HTTP page will not trigger mixed content warning.