+ 4

How to disable code playground colours? Moving too slow.

When code gets over 100 lines of code, it always begins to lag on tge mobile device (not on PC). By lag, I mean typing a 3 second word like "var" will take 10 seconds to show up. In order to combat this I am usually forced to take snippets of the code to a blank project, work on it there, and finally copy paste it back into the code. I niticed too that the cursor drag and copy paste works fine. But when I type, the colours of the words (based on var, function, number etc) get wonky* before fully updating. My assumption is that it loops through the code for keywords to colour them, a very resource intensive feature for big code. I also have the font size hugest, so it barely has lots of code to loop through. I'm not sure how it works. So how do I disable the feature? Similarly, what can I change to make the playground move smoother even with so much code? *wonky: "var" is usually coloured blue. But sometimes colours fail to update, and the "ar" is blue while the "v" is white. It only changes after lag.

2nd Jul 2018, 2:26 PM
Andre Daniel
Andre Daniel - avatar
6 Answers
+ 5
Andre Daniel Appears to be an instance of this. Currently unknown as to what the cause is (apart from speculations), and the scale of affected users. I personally don't think that colours are the problem - I've dealt with huge codes on mobile and haven't had an issue until recently. https://www.sololearn.com/discuss/1382299/?ref=app
3rd Jul 2018, 3:16 AM
Hatsy Rei
Hatsy Rei - avatar
+ 5
Andre Daniel Google Keyboard.
3rd Jul 2018, 4:32 AM
Hatsy Rei
Hatsy Rei - avatar
+ 2
var should be colored purple though, so i think it's more than just the color's not updating
3rd Jul 2018, 11:54 AM
hinanawi
hinanawi - avatar
0
Gboard? What's that?
3rd Jul 2018, 3:43 AM
Andre Daniel
Andre Daniel - avatar
0
Hatsy Rei but sometimes if I scroll to the way bottom of the code it moves faster than the middle. Then another moment it's the bottom lagging and when I scroll to the middle or top it's moving fast. And well, for me it still lags to update colours.
3rd Jul 2018, 11:47 AM
Andre Daniel
Andre Daniel - avatar
0
I have experienced the same lag even with short snippets of code. Disabling Google Keyboard worked like a charm. I chose Touchpal instead of GBoard and everything is moving swiftly now. Thanks guys.
3rd Jul 2018, 6:09 PM
Zuzka PokornĂĄ
Zuzka PokornĂĄ - avatar