ramda / repl

The Ramda REPL
34 stars 15 forks source link

Ramda/repl loads up ages #60

Closed Mati365 closed 5 years ago

Mati365 commented 6 years ago

https://ramdajs.com/repl/?v=0.25.0 loads something about 15s.

Timeline: Timeline

CrossEye commented 6 years ago

I've been noticing this for two weeks or so, and haven't had time to investigate. We've had problems before when wzrd.in has been very slow. If anyone knows something about alternatives, I think it's past time when we try using something else.

Rafi993 commented 6 years ago

I created a simple repl similar to this one using monaco editor https://rafi993.github.io/repl/. Here is the repo https://github.com/rafi993/repl. It does miss functionality like share and autocompletion for ramda but it shouldnt be hard to add. But it does add functionality like comment and other defaults that come with monaco editor (minification of files is not yet done)

CrossEye commented 6 years ago

(Sorry for the slow reply: just back from vacation.)

That's very nice to see. I will try to look at it more closely over the next few days.

Rafi993 commented 5 years ago

It seems that these are the two scripts that take really long time to load https://wzrd.in/standalone/ramda-fantasy@latest https://wzrd.in/standalone/sanctuary@latest other network request are resolved quickly. We can try replacing them with cdnjs links (since other scripts are loaded from cdnjs).

davidchambers commented 5 years ago

https://sanctuary.js.org/#installation lists the required scripts in the correct order.

Rafi993 commented 5 years ago

Is there any updates on this ?

Rafi993 commented 5 years ago

I replaced these two files https://wzrd.in/standalone/ramda-fantasy@latest https://wzrd.in/standalone/sanctuary@latest with a local js. It took around 1.07s to load. I have hosted it here https://rafi993.github.io/ramda-repl-test/ for testing. 2018-11-22-182031_1366x768

CrossEye commented 5 years ago

@Rafi993: Would you like to make a PR for those changes?

Rafi993 commented 5 years ago

I have created this pull request https://github.com/ramda/repl/pull/62 we can use it for now. But it would be better if we can create cdnjs for both of those files.

CrossEye commented 5 years ago

I merged that request as a temporary fix. I will try to republish this evening.

foxbunny commented 5 years ago

Not sure if the fixes are up yet, but it's still plenty slow.

CrossEye commented 5 years ago

I've been having trouble regenerating the documentation. If I can't get it tonight, I will look for some help.

foxbunny commented 5 years ago

What kind of trouble?

CrossEye commented 5 years ago

Build errors. I'm on a mobile device right now, but when I get in front of a computer again, I will try again and post the errors somewhere if I don't get it to work.

foxbunny commented 5 years ago

I'll be available next weekend to try and assist if you still need help then.

CrossEye commented 5 years ago

Thank you. After spending as long as I did on the big release ten or so days ago, and having everything eventually work, when this didn't work, I stopped in frustration and haven't really gone back to it.

CrossEye commented 5 years ago

Those fixes are up, and it seems to load much faster!

Rafi993 commented 5 years ago

The repl still seems to refer to https://wzrd.in/standalone/sanctuary@latest and https://wzrd.in/standalone/ramda-fantasy@latest was it deployed ?

CrossEye commented 5 years ago

Not sure what happened. I swear it was working last night...

Uggh!

meszaros-lajos-gyorgy commented 5 years ago

wzrd.in has been ditched and content is now served from bundle.run. It is blazing fast now. Since https://github.com/ramda/ramda.github.io/issues/217 is resolved, I suggest the same for this ticket.

Rafi993 commented 5 years ago

Awesome.