Closed TreffnonX closed 8 years ago
In theory, it would make a lot of sense to split board up further. what do you think?
I wouldn't prefer that. Lot of files means lot more page load time. I'm still not very sure about the current split itself
Files are almost as long as before and are all loaded within the html. thery practically all get loaded instantly after index.html. no cascading.
http://stackoverflow.com/questions/15236767/one-big-javascript-file-or-multiple-smaller-files But I guess the current split is alright for now
startTime, stopTime, getZero belong in board.js
There seems to be a way to compress the files and package them into one, before uploading them. This allows complete modularization, while having everything packed up in one file.
This particular tool seems to do just that: https://github.com/websharks/html-compressor
I quote: I mentioned two files. In some cases, it could be good having one small file, that takes care of the "bootstrap" operations, meanwhile the "big file" – especially if it's really big – is downloaded. This is useful especially for the first access, because users doesn't have your files cached yet.
Squash merged your changes as the commit can be easily reverted if problems arise
Reverted the changes as auto login feature was not working
Oh, and after the auto-login issue is fixed, can you submit another pull request with all the commits squash merged into 1 commit so that I can directly merge your branch - this will show your name in the commit history.
Hmm... this is very weird. Auto login is working for me.
I will probably need longer to find this issue.
When I reload the page, it doesn't autologin, but when I click the "Signup/Login" button, it auto logins.
Yap, correct. It does work on my branch, but not on yours. I need to see why.
Actually correction: I forgot to disable the login clamp you have installed: if (url.indexOf("playtak") > -1) url = 'playtak.com:3000'; That was the reason I didn't conect. I tried it and now it works like a charm for me.. Well.... seems like I will not be able to fix this right away, I will have to come back with a solution.
I will close this, as it is stale at this point. Also the non-auto-login seems to be a problem on some devices.
Split index.html into multiple files. css styles -> css/tak.css ui functions -> js/tak.js settings loading -> js/settings.js board -> js/board.js server -> js/server.js
Aside from that, no features, no functions, I promise =)