Is it possible to make Remote Action Asynchronous?

I have a Remote action call from my Visualforce Page.

            {escape: false}

and my controller “PartnerPrimeSubController” looks like this

global static List<String> calculatePartnerPrimeSub(){
    //Custom Code
    return finalJSONData;

Is it possible to make JSRemoting Asynchronous?

I tried something like this and failed:

@future @RemoteAction
global static List<String> calculatePartnerPrimeSub(){
    //Custom code

Use Case behind this requirement:

  1. I am trying to invoke 10 VF Remoting calls after DOM Load Complete in my Visualforce Page.
    When i checked the network in chrome console, Salesforce tries to
    process 1 VF remoting call at a time.
  2. Salesforce completes 1 remoting call and 9 other VF Remoting call seems to be waiting until first remoting completes.
  3. I am also trying to improve the performance of my page by moving
    away from Action Function and implementing Lazy loading through
    VF Remoting.

Any pointers?


I guess the answer is the SF document itself. Have a look at this link

You can configure your remoting call using these three parameters “buffer“,”timeout” and “escape”. Usually written at the end of a call.

You have to look for the parameter “buffer“. As per the docs buffer decides

Whether to group requests executed close to each other in time into a
single request. The default is true.

So to make your individual call to the controller you have to set this parameter as


        function(result, event){

        { buffer: false, escape: true, timeout: 30000 }

Source : Link , Question Author : Jag , Answer Author : Avidev9

Leave a Comment