switch to room list switch to menu My folders
Go to page: First ... 19 20 21 22 [23]
[#] Fri Jul 22 2016 11:21:41 EDT from LoanShark @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

Render a skeleton of the page the main page load, and populate the full contents asynchronously. Surely that's the whole reason you wanted to use AJAX in the first place, so it is the best practice.

[#] Sun Jul 24 2016 21:02:49 EDT from IGnatius T Foobar @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

For the most part, yes. Initially however I'm making a call that loads a bunch of system configuration (in JSON format) and populates a bunch of data structures. This determines how the remainder of the page gets rendered.
Once that's done, nearly everything else can happen asynchronously.

Admittedly, however, I am a n00b to writing web applications this way, and as soon as it's implemented past the point of no return I'll figure out a better way to do it.

[#] Mon Jul 25 2016 11:44:52 EDT from LoanShark @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

of data structures. This determines how the remainder of the page gets


Then it sounds like you need to render *almost nothing* on the main page load. Render everything from Javascript.

It's either that, or do more of that first, skeletal rendering server side, the old-fashioned way.

[#] Tue Jul 26 2016 21:02:02 EDT from IGnatius T Foobar @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

Isn't that how you're supposed to do client-side web apps anyway? Just a couple of div's for the basic layout and then everything else in javascript?

What I ended up doing is running the initial JS piece on page load and then having that function's OnComplete (or whatever it's called) call a function that loads all the other pieces that depend on it. I suppose that's "how it's supposed to be done" but it still seems a bit obtuse to me.

[#] Fri Jul 29 2016 09:19:12 EDT from fleeb @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

Yeah, that's how the cool kids do web development these days, daddy-o.

*snap* *snap* Fresh.

[#] Mon Oct 03 2016 11:47:22 EDT from fleeb @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

I have written a fairly significant amount of Rails code lately.

I thought we should embrace it, as the rest of the company uses it for their efforts, so we could potentially pull from a larger pool of people in the future if we ever needed to do so.

Although I'd never used this before, I find this environment impressive.
Although, getting something up in production seemed to involve installing the world.

Go to page: First ... 19 20 21 22 [23]