Health – how to articles from wikiHow =g||g>b?(c&&(clearTimeout(c),c=null),d=f,a.apply()):c||(c=setTimeout(e,g))}}function p(){var a=!1,b=window.innerHeight||document.documentElement.clientHeight,c;for(c in g){var d=g[c];if(0!=d.useScrollLoader&&!d.isLoaded){a=d;var e=a.element.getBoundingClientRect(),f={top:e.top,bottom:e.bottom};0==a.lastTop-e.top&&window.scrollY!=a.lastY&&(f.top-=window.scrollY,f.bottom-=window.scrollY);a.lastTop=e.top;a.lastY=window.scrollY;a=f;e=b;f=52;var h=2*e;f-=h;e+=h;(0==a.top&&0==a.bottom?0:a.top>=f&&a.top=f&&a.bottom<=e||a.top=e)&&d.load();a=!0}}!a&&g.length&&(window.removeEventListener("scroll",k),k=null)}function u(a){if(a&&a.element)if(document.addEventListener&&a.finishedLoadingEvent){a.loaderRemoved=!1;var b=document.createElement("div");b.className="loader"; for(var c=0;3>c;c++){var d=document.createElement(“div”);d.className=”loader-dot”;b.appendChild(d)}var e=document.createElement(“div”);e.className=”loading-container”;e.appendChild(b);a.element.parentElement.insertAdjacentElement(“afterbegin”,e);a.element.addEventListener(a.finishedLoadingEvent,function(){a.alt&&(a.element.alt=a.alt);a.loadedCallback&&a.loadedCallback();0==a.loaderRemoved&&(this.parentElement.removeChild(e),a.loaderRemoved=!0,”undefined”!==typeof a.element.classList&&a.element.classList.remove(“img-loading-hide”))});a.errorEvent&&a.element.addEventListener(a.errorEvent,function(){a.alt&&(a.element.alt=a.alt)})}else a.alt&&(a.element.alt=a.alt),”undefined”!==typeof a.element.classList&&a.element.classList.remove(“img-loading-hide”)}function v(a){this.lastTop=a.getBoundingClientRect().top;this.lastY=window.scrollY;this.isVisible=this.isLoaded=!1;this.element=a;this.load=function(){}}function w(a){if(!a)return””;if(!l)return a;var b=a.split(“.”).pop();”jpg”!==b&&”png”!==b ||!a.match(/images(_[a-z]{2})?/thumb//)||a.match(/(.[a-zA-Z]+){2}$/)||(a+=”.webp”);return a}function I(a){v.call(this,a);this.src=a.getAttribute(“data-src”);this.load=function(){this.element.setAttribute(“src”,this.src);this.isLoaded=!0}}function A(a){v.call(this,a);this.alt=a.alt;a.alt=””;this.finishedLoadingEvent=”load”;this.errorEvent=”error”;if(x){var b=a.getAttribute(“data-srclarge”);null!=b&&(this.src=b)}this.src||(this.src=a.getAttribute(“data-src”));this.src=w(this.src);a&&void 0!==a.classList&&a.classList.add(“img-loading-hide”);this.load=function(){this.element.setAttribute(“src”,this.src);this.isLoaded=!0;u(this)}}function J(a){v.call(this,a);this.finishedLoadingEvent=”loadeddata”;this.isPlaying=!1;this.src=”https://www.wikihow.com/video”+this.element.getAttribute(“data-src”);this.poster=this.element.getAttribute(“data-poster”);(this.poster=w(this.poster))&&”jpg”==this.poster.split(“.”).pop()&&l&&(this.poster+=”.webp”);this.noAutoplay=this.element.getAttribute( “data-noautoplay”);this.play=function(){this.element.play();this.isPlaying=!0};this.pause=function(){this.element.pause();this.isPlaying=!1};this.load=function(){this.element.setAttribute(“poster”,this.poster);!B||this.noAutoplay||!x&&!0!==window.wgIsMainPage?this.finishedLoadingEvent=null:(this.element.setAttribute(“src”,this.src),this.play());this.isLoaded=!0;this.noAutoplay||u(this)}}function y(a){var b=document.getElementById(a);if(b)if(l||C){var c=null;a=null==h?!1:!0;if(“img”===b.nodeName.toLowerCase())if(c=new A(b),a)c.useScrollLoader=!1,h.observe(c.element);else{if(1==m){c.useScrollLoader=!1;var d=c;d.element.classList.remove(“img-loading-hide”);d.element.setAttribute(“loading”,”lazy”);d.load()}}else if(“video”===b.nodeName.toLowerCase())c=new J(b),a&&(c.useScrollLoader=!1,h.observe(c.element));else if(“iframe”===b.nodeName.toLowerCase())c=new I(b),a&&(c.useScrollLoader=!1,h.observe(c.element));else if(“picture”===b.nodeName.toLowerCase())if(d=b.getElementsByTagName(“img”)[0],1 ==m){q?(d.width=d.dataset.width,d.height=d.dataset.height):(d.width=d.dataset.widthlarge,d.height=d.dataset.heightlarge);d.src=d.dataset.src;d=b.getElementsByTagName(“source”);for(var e=0;e=WH.largeScreenMinWidth?”large”:a>=WH.mediumScreenMinWidth?”medium”:”small”},throttle:t,TOP_MENU_HEIGHT:52,autoPlayVideo:B,webpSupport:l,addScrollLoadItem:y,addScrollLoadItemByElement:function(a){var b=a.id;b||(b=”id-“+Math.random().toString(36).substr(2,16));a.id=b;y(b)},videoRoot:”https://www.wikihow.com/video”,setupLoader:u,addResizeFunction:z,loadAllImages:function(){for(var a in g){var b=g[a];b.isLoaded||b.load()}},loadAllEmbed:function(){for(var a in g){var b=g[a];b.isLoaded||”iframe”==b.element.nodeName.toLowerCase()&&b.load()}}, addLoadedCallback:function(a,b){g[a].loadedCallback=b},showVideoPlay:function(a){a=a.element.parentElement.getElementsByClassName(“m-video-intro-over”);”undefined”!==typeof a&&(a=a[0]);a&&(a.style.visibility=”visible”)},getCompressedImageSrc:w}}();]]> =0){return true;}return false;}function hasCookiePolicyPageOptOut(){var hasCookie=document.cookie.indexOf(‘gdpr_cpp_opt_out=1’);if(hasCookie>=0){return true;}return false;}function hasEUQueryParam(){var url=window.location.href;if(url.indexOf(‘?EUtest=’)!=-1){return true;}else if(url.indexOf(‘&EUtest=’)!=-1){return true;}return false;}function isEULocation(){var value=”; “+document.cookie;var parts=value.split(“; vi=”);var res=null;if(parts.length==2){res=parts.pop().split(“;”).shift();}if(hasEUQueryParam()){res=”EU”;}if(res==”EU”){return true;}return false;}function popupClosed(){createCookie(“gdpr_accept”,1,365);createCookie(“gdpr_decline”,””,-1);gdpr.style.display=”none”;}function createCookie(name,value,days){var expires=”; expires=”+new Date(2147483647*1000).toUTCString();if(days){var date=new Date();date.setTime(date.getTime()+(days* 24*60*60*1000));expires=”; expires=”+date.toGMTString();}document.cookie=name+”=”+value+expires+”; path=/”;}function declinePage(){var decline=document.getElementById(‘gdpr_decline’);if(decline){decline.style.display=”block”;decline.addEventListener(“click”,function(){var cookies=document.cookie.split(“;”);for(var i=0;i =u+250&&(u=b,K())}var c=q();b=c-L;L=c;if(!(0>=b)){var d=window.scrollY||window.pageYOffset;c=d+(window.innerHeight||document.documentElement.clientHeight);if(!(d>z||c

=e))for(d=Math.floor(128*(1*d-p)/e),0>d&&(d=0),c=Math.ceil(128*(1*c-p)/e),127=d[0]||0>=d[1]?””:d.join(“x”)}function r(b){var c=W();250>c&&(c=1500);var f={gg:y,to:Math.round((+new Date-v)/1E3),ac:Math.round(q()/1E3),pg:h.pageID,ns:h.pageNamespace,ra:S,cv:X,cl:T,cm:D(),dl:location.href,b:”6″};f=R(b,f);0===h.pageNamespace&&(B=c/1500*180,A=B/3,b=Math.round(100*M/A),0>b&&(b=0),100c;c++)b+=”abcdefghijklmnopqrstuvwxyz0123456789″.charAt(Math.floor(36*Math.random()));S=b;y=(“string”===typeof document.referrer?document.referrer:””).match(/^[a-z]*://[^/]*google/i)?1:0;k=v=”number”==typeof h.timeStart&&02043


Source