scripts/bigpipe.js
function (obj) {
                if (!resourceChecked) {
                    Util.saveLoadedRes();
                    resourceChecked = true;
                }
                currReqID = obj.reqID;
                // console.log('arrive', obj.id);
                this.trigger('pageletarrive', obj);
                var pagelet = new PageLet(obj, function () {
                    // console.log('dom ready', obj.id);
                    var item;
                    count--;
                    // enforce js executed after dom inserted.
                    if (count === 0) {
                        while ((item = pagelets.shift())) {
                            BigPipe.trigger('pageletinsert', pagelet, item.pageletData);
                            // console.log('pagelet exec js', item.pageletData.id);
                            item.loadJs((function (item) {
                                // console.log('pagelet exec done', item.pageletData.id);
                                BigPipe.trigger('pageletdone', pagelet, item.pageletData);
                            })(item));
                        }
                    }
                });
                pagelet.pageletData = obj;
                pagelets.push(pagelet);
                count++;
                pagelet.loadCss();
            }
function (obj) {
                if (!resourceChecked) {
                    Util.saveLoadedRes();
                    resourceChecked = true;
                }
                currReqID = obj.reqID;
                // console.log('arrive', obj.id);
                this.trigger('pageletarrive', obj);
                var pagelet = new PageLet(obj, function () {
                    // console.log('dom ready', obj.id);
                    var item;
                    count--;
                    // enforce js executed after dom inserted.
                    if (count === 0) {
                        while ((item = pagelets.shift())) {
                            BigPipe.trigger('pageletinsert', pagelet, item.pageletData);
                            // console.log('pagelet exec js', item.pageletData.id);
                            item.loadJs((function (item) {
                                // console.log('pagelet exec done', item.pageletData.id);
                                BigPipe.trigger('pageletdone', pagelet, item.pageletData);
                            })(item));
                        }
                    }
                });
                pagelet.pageletData = obj;
                pagelets.push(pagelet);
                count++;
                pagelet.loadCss();
            }
function ( obj ) { if ( ! resourceChecked ) { Util . saveLoadedRes ( ) ; resourceChecked = true ; } currReqID = obj . reqID ; // console.log('arrive', obj.id); this . trigger ( 'pageletarrive' , obj ) ; var pagelet = new PageLet ( obj , function ( ) { // console.log('dom ready', obj.id); var item ; count -- ; // enforce js executed after dom inserted. if ( count === 0 ) { while ( ( item = pagelets . shift ( ) ) ) { BigPipe . trigger ( 'pageletinsert' , pagelet , item . pageletData ) ; // console.log('pagelet exec js', item.pageletData.id); item . loadJs ( ( function ( item ) { // console.log('pagelet exec done', item.pageletData.id); BigPipe . trigger ( 'pageletdone' , pagelet , item . pageletData ) ; } ) ( item ) ) ; } } } ) ; pagelet . pageletData = obj ; pagelets . push ( pagelet ) ; count ++ ; pagelet . loadCss ( ) ; }
This is method will be executed automaticlly.  - after chunk output pagelet. - after async load quickling pagelet.
This is method will be executed automaticlly . - after chunk output pagelet . - after async load quickling pagelet .