Skip to content

Instantly share code, notes, and snippets.

@IbrahimTanyalcin
Created April 18, 2018 12:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IbrahimTanyalcin/d0aa64aea87476600580d2006a0f8a82 to your computer and use it in GitHub Desktop.
Save IbrahimTanyalcin/d0aa64aea87476600580d2006a0f8a82 to your computer and use it in GitHub Desktop.
Taskq -> Medium -> Part3 -> NonRenderBlocking -> someOtherProcess.js
!function(){
function someOtherProcess(){
texts && texts.forEach(function(d,i){
var p = document.createElement("p");
p.textContent = d;
document.body.firstElementChild.appendChild(p);
});
}
someOtherProcess._taskqId = "someOtherProcess";
someOtherProcess._taskqWaitFor = ["nonRenderBlocking"];
taskq.push(someOtherProcess);
}();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment