Is it possible to display more than one node in a page? I am trying to display two nodes in Drupalgap.

//page_callback
function tung_intro_page() {
  var display_page = '&lt;body&gt;' + '&lt;div id="my_node_13"&gt;&lt;/div&gt;'; 
  display_page += '&lt;div id="my_node_3"&gt;&lt;/div&gt;' + '&lt;/body&gt;';
  return display_page;
}

function tung_intro_pageshow() {
//  drupalgap_alert('My pageshow event has been called!');
 try{
        var nid = 13;
        node_load(nid, {
        success:function(node){
         var title = node.title;
         var content = node.content;
         //var whole = html(title) + html(content);
         $('#' + 'my_node_' + nid).html(content).trigger('create');
          }
        });
        nid = 3;
        node_load(nid, {
        success:function(node){
         var title = node.title;
         var content = node.content;
         $('#' + 'my_node_' + nid).html(content).trigger('create');
          }
        });
  }
  catch (error) { console.log('tung_intro_pageshow - ' + error); }
}


This only shows the content of the last node. How can I show both the nodes?
From our comment conversation...

Try this in your pageshow handler:

function tung_intro_pageshow() {

  // Load the fist node and inject it.
  var nid = 13;
  node_load(nid, {
    success:function(node) {

      var title = node.title;
      var content = node.content;
      $('#' + 'my_node_' + nid).html(content).trigger('create');

      // Load the second node node and inject it.
      nid = 3;
      node_load(nid, {
          success:function(node){

            var title = node.title;
            var content = node.content;
            $('#' + 'my_node_' + nid).html(content).trigger('create');

          }
      });

    }
  });
}


Not the most elegant solution, but a workaround nonetheless. A more ideal solution is dependent on the outcome of this: https://www.drupal.org/node/2601764