vue-tweet-embed icon indicating copy to clipboard operation
vue-tweet-embed copied to clipboard

Compiling error

Open jamiecarter7 opened this issue 4 years ago • 2 comments

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.

jamiecarter7 avatar Sep 22 '19 13:09 jamiecarter7

Hi @jamiecarter7 ,

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

tonickkozlov avatar Nov 08 '19 22:11 tonickkozlov

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.

robsonsobral avatar Mar 13 '20 13:03 robsonsobral