Andrew Peacock
Posts: 0
Joined: Thu Jan 09, 2014 10:03 pm

Servercode editing almost impossible.

Hi, over the last couple of days I've been working on a server code script, and I'm consistently getting both Chrome and Firefox reporting that https://appery.io/servercode/require/... is taking too long

Just scrolling up and down the code editing textbox is enough to trigger the timeout, and if I select to let the code continue, I get the timeout error multiple times before your main.js finishes.

Can something be done about it?

Regards,
Andy

obullei
Posts: 0
Joined: Thu Jun 05, 2014 12:17 am

Servercode editing almost impossible.

Hello!

Could you explain with more details what problem do you have?
If it is possible, please provide the screenshots of the problem with some explanations?

Andrew Peacock
Posts: 0
Joined: Thu Jan 09, 2014 10:03 pm

Servercode editing almost impossible.

See attached.

To get to this problem, all I do is open the servercode editing page, put my cursor in the code, and scroll down to where I want to get to.

Andy
Image

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Servercode editing almost impossible.

Hi Andrew.

I've tested your app in my new server script.

And it's ok. http://prntscr.com/3s8tkr/direct

Please try to use "chrome" browser.

Also i see you have some frameworks in your code.

This framework increase code and it will increase calculations to get this code colorized.

So please remove this frameworks from your server script code and move it to separate libraries.

See details how to work with server code libraries: http://devcenter.appery.io/documentat...

Regards.

Andrew Peacock
Posts: 0
Joined: Thu Jan 09, 2014 10:03 pm

Servercode editing almost impossible.

Hi Yurii,

I have the same issue in Chrome. I'd already tried it, and I've just tried it again.

I'm using one framework (underscore), but I'm using it exactly the way described in the link you provided - I simply checked the dependency checkbox for underscore.js

But.. I'm only using one underscore function, so I pulled that out and embedded that function directly in my code.

But the question is still an issue for me: if I really did need to use major parts of one the libraries, will I again face this issue?

Andy

Andrew Peacock
Posts: 0
Joined: Thu Jan 09, 2014 10:03 pm

Servercode editing almost impossible.

Oh, and thanks very much for getting back to me!
Andy

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Servercode editing almost impossible.

Dear Andrew.

I told about these frameworks, that's you have embeded in your script(see screen shots):

'''

/*! jQuery v1.7.2 jquery.com | jquery.org/license */
http://prntscr.com/3s9obk/direct

// Underscore.js 1.4.4
http://prntscr.com/3s9o66/direct

// Backbone.js 1.0.0
http://prntscr.com/3s9olw/direct

//jQuery UI - v1.8.20 - 2012-04-30
http://prntscr.com/3s9p72/direct

'''

Also in there is a lot of other code(i guess it was added in error).

All these frameworks should be moved from your script to separate library. (you need to create new library and fill it with library code you need).

Regards.

Andrew Peacock
Posts: 0
Joined: Thu Jan 09, 2014 10:03 pm

Servercode editing almost impossible.

Hi Yurii,
That's not what I'm seeing. The only framework I had checked in your framework list was underscore (although I've removed it now), and I could not see all the framework code in the UI - just my own custom code. All the code I could see was my own, as I was relying on the underscore framework to supply that code, via the checkbox you supply. So, even if the framework code is visible to you in the backend, it shouldn't be affect the UI if it's not visible to me.

Andy

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Servercode editing almost impossible.

Hello Andrew,

Could you please share your script with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a and we'll test it. In server code console on tab Share.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Servercode editing almost impossible.

Hi Andrew,

Did you solve it?

Return to “Issues”