0

I have this test to load the Facebook JavaScript SDK synchronously:

<html>
<body>
  <script>alert('1');</script>     
  <script src="https://connect.facebook.net/en_US/all.js" />
  <script>alert('2');</script>
</body>
</html>

For me, the second alert is never shown, any ideas why?

Reto Höhener
  • 5,419
  • 4
  • 39
  • 79

1 Answers1

2

Correction:

<html>
<body>
  <script>alert('1');</script>     
  <script src="https://connect.facebook.net/en_US/all.js"></script>
  <script>alert('2');</script>
</body>
</html>

More information: Why don't self-closing script tags work?

Community
  • 1
  • 1
andyrandy
  • 72,880
  • 8
  • 113
  • 130