Closed Munter closed 9 years ago
Oh gosh, I had managed to completely forget about that hand-rolled state machine.
Anyway, LGTM.
I think there are npm modules out there to solve the same problem for us, but I didn't want to rock the boat to much :)
When using RequireJS in a synchronously loaded script tag in
<head />
the requirejs script will expose AMD define before socket.io i loaded. It results in the MISMATCHED ANONYMOUS DEFINE() MODULES error because socket.io's AMD compatibility wrapper calls define itself.This PR makes the livestyle client be injected before the first script tag if it comes before any of the other matches for
</head>
or</html>
Ping @papandreou @gustavnikolaj