Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
I can't help with the optifine issue unless I see a crash log. They are working when installed correctly.
Realm error is unrelated. I have confirmed that Realms are working, so try again on your end. It can take a little to load.