Reputation: 5838
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?
Upvotes: 0
Views: 23
Reputation: 74014
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?
Upvotes: 2