How to Keep Your SEO Rankings After Redesigning Your WordPress

How to Keep Your SEO Rankings After Redesigning Your WordPress Site – DevriX0;var e=t?r.nitroScrollPos:0;function l(){if(r!==null){if(typeof r===”object”){r.nitroScrollPos=window.pageYOffset}}else{r={nitroScrollPos:window.pageYOffset}}history.replaceState(r,””)}window.addEventListener(“scroll”,function(){if(o!==null)clearTimeout(o);o=setTimeout(l,200)},{passive:true});return{isScrolled:function(){return t},getScrollPos:function(){return e}}}();]]>)?$/gm,”$1″)],{type:”text/javascript”}))}catch(e){var n=”data:text/javascript;base64,”+btoa(t.replace(/^(?:)?$/gm,”$1″))}return n};var D=function(){NPh.documentReadyState=”interactive”;document.triggerNitroEvent(“readystatechange”);document.triggerNitroEvent(“DOMContentLoaded”);if(window.pageYOffset||window.pageXOffset){window.dispatchEvent(new Event(“scroll”))}L=true;U(function(){if(g==0){U(F)}U(X)})};var F=function(){if(!L||b)return;b=true;N.disconnect();_();NPh.documentReadyState=”complete”;document.triggerNitroEvent(“readystatechange”);window.triggerNitroEvent(“load”,document);window.triggerNitroEvent(“pageshow”,document);if(window.pageYOffset||window.pageXOffset||location.hash){let e=typeof history.scrollRestoration!==”undefined”&&history.scrollRestoration==”auto”;if(e&&typeof NPSH!==”undefined”&&NPSH.getScrollPos()>0){window.scrollTo(0,NPSH.getScrollPos())}else if(location.hash){try{let e=document.querySelector(location.hash);if(e){e.scrollIntoView()}}catch(e){}}}var e=null;if(n==1){e=z}else{e=ee}U(e)};var U=function(e){setTimeout(e,0)};var W=function(e){if(e.type==”touchend”||e.type==”click”){c=e}};var X=function(){if(c){setTimeout(function(r){return function(){var e=function(e,t,n){var r=new Event(e,{bubbles:true,cancelable:true});if(e==”click”){r.clientX=t;r.clientY=n}else{r.touches=[{clientX:t,clientY:n}]}return r};var t;if(r.type==”touchend”){var n=r.changedTouches[0];t=document.elementFromPoint(n.clientX,n.clientY);t.dispatchEvent(e(“touchstart”),n.clientX,n.clientY);t.dispatchEvent(e(“touchend”),n.clientX,n.clientY);t.dispatchEvent(e(“click”),n.clientX,n.clientY)}else if(r.type==”click”){t=document.elementFromPoint(r.clientX,r.clientY);t.dispatchEvent(e(“click”),r.clientX,r.clientY)}}}(c),150);c=null}};var Y=function(e){if(e.tagName==”SCRIPT”&&!e.hasAttribute(“data-nitro-for-id”)&&!e.hasAttribute(“nitro-document-write”)||e.tagName==”IMG”&&(e.hasAttribute(“src”)||e.hasAttribute(“srcset”))||e.tagName==”IFRAME”&&e.hasAttribute(“src”)||e.tagName==”LINK”&&e.hasAttribute(“href”)&&e.hasAttribute(“rel”)&&e.getAttribute(“rel”)==”stylesheet”){var t=””;switch(e.tagName){case”LINK”:t=e.href;break;case”IMG”:if(T.indexOf(e)>-1)return;t=e.srcset||e.src;break;default:t=e.src;break}var n=e.getAttribute(“type”);if(!t&&e.tagName!==”SCRIPT”)return;if((e.tagName==”IMG”||e.tagName==”LINK”)&&(t.indexOf(“data:”)===0||t.indexOf(“blob:”)===0))return;if(e.tagName==”SCRIPT”&&n&&n!==”text/javascript”&&n!==”application/javascript”){if(n!==”module”||!O)return}if(e.tagName===”SCRIPT”){if(T.indexOf(e)>-1)return;if(e.noModule&&O){return}if(!e.src){if(e.textContent.length>0){e.textContent+=”n;if(document.currentScript.nitroTimeout) {clearTimeout(document.currentScript.nitroTimeout);}; setTimeout(function() { this.dispatchEvent(new Event(‘load’)); }.bind(document.currentScript), 0);”}else{return}}T.push(e)}if(!e.hasOwnProperty(“nitroTimeout”)){g++;e.addEventListener(“load”,H,true);e.addEventListener(“error”,H,true);e.addEventListener(“nitroTimeout”,H,true);e.nitroTimeout=setTimeout(function(){console.log(“Resource timed out”,e);e.dispatchEvent(new Event(“nitroTimeout”))},5e3)}}};var G=function(e){if(e.hasOwnProperty(“nitroTimeout”)&&e.nitroTimeout){clearTimeout(e.nitroTimeout);e.nitroTimeout=null;e.dispatchEvent(new Event(“nitroTimeout”))}};document.documentElement.addEventListener(“load”,function(e){if(e.target.tagName==”SCRIPT”||e.target.tagName==”IMG”){T.push(e.target)}},true);document.documentElement.addEventListener(“error”,function(e){if(e.target.tagName==”SCRIPT”||e.target.tagName==”IMG”){T.push(e.target)}},true);var K=[“appendChild”,”replaceChild”,”insertBefore”,”prepend”,”append”,”before”,”after”,”replaceWith”,”insertAdjacentElement”];var Q=function(){K.forEach(function(t){HTMLElement.prototype[“og”+t]=HTMLElement.prototype[t];HTMLElement.prototype[t]=function(…e){if(this.parentNode||this===document.documentElement){switch(t){case”replaceChild”:case”insertBefore”:e.pop();break;case”insertAdjacentElement”:e.shift();break}e.forEach(function(e){if(!e)return;if(e.tagName==”SCRIPT”){Y(e)}else{if(e.children&&e.children.length>0){e.querySelectorAll(“script”).forEach(Y)}}})}return this[“og”+t].apply(this,arguments)}})};var _=function(){K.forEach(function(e){HTMLElement.prototype[e]=HTMLElement.prototype[“og”+e]})};var J=async function(){if(f){ie(v);ie(W);if(m){clearTimeout(m);m=null}}if(E===1){y=true;return}else if(E===0){E=-1}NPh.startedScriptLoading=true;Object.defineProperty(document,”readyState”,{get:function(){return NPh.documentReadyState},set:function(){}});var e=document.documentElement;var t={attributes:true,attributeFilter:[“src”],childList:true,subtree:true};N=new MutationObserver(function(e,t){e.forEach(function(e){if(e.type==”childList”&&e.addedNodes.length>0){e.addedNodes.forEach(function(e){if(!document.documentElement.contains(e))return;if(e.tagName==”IMG”||e.tagName==”IFRAME”||e.tagName==”LINK”){Y(e)}})}if(e.type==”childList”&&e.removedNodes.length>0){e.removedNodes.forEach(function(e){if(e.tagName==”IFRAME”||e.tagName==”LINK”){G(e)}})}if(e.type==”attributes”){var t=e.target;if(!document.documentElement.contains(t))return;if(t.tagName==”IFRAME”||t.tagName==”LINK”||t.tagName==”IMG”||t.tagName==”SCRIPT”){Y(t)}}})});N.observe(e,t);Q();await Promise.all(P);var n=p.shift();var r=null;var i=false;while(n){var o;var a=JSON.parse(atob(n.meta));var c=a.delay;if(n.type==”inline”){var u=document.getElementById(n.id);if(u){u.remove()}else{n=p.shift();continue}o=B(u);if(o===false){n=p.shift();continue}}else{o=n.src}if(!i&&n.type!=”inline”&&(typeof a.attributes.async!=”undefined”||typeof a.attributes.defer!=”undefined”)){if(r===null){r=n}else if(r===n){i=true}if(!i){p.push(n);n=p.shift();continue}}var d=document.createElement(“script”);d.src=o;d.setAttribute(“data-nitro-for-id”,n.id);for(var s in a.attributes){try{if(a.attributes[s]===false){d.setAttribute(s,””)}else{d.setAttribute(s,a.attributes[s])}}catch(e){console.log(“Error while setting script attribute”,d,e)}}d.async=false;if(c){setTimeout(function(e,t){var n=document.querySelector(“[data-nitro-marker-id='”+t+”‘]”);if(n){n.after(e)}else{document.head.appendChild(e)}}.bind(null,d,n.id),c)}else{d.addEventListener(“load”,q);d.addEventListener(“error”,q);if(!d.noModule||!O){h++}var l=document.querySelector(“[data-nitro-marker-id='”+n.id+”‘]”);if(l){U(function(e,t){return function(){e.after(t)}}(l,d))}else{U(function(e){return function(){document.head.appendChild(e)}}(d))}}n=p.shift()}};var $=function(){var e=document.getElementById(“nitro-deferred-styles”);var t=document.createElement(“div”);t.innerHTML=e.textContent;return t};var z=async function(e){isPreload=e&&e.type==”NitroPreload”;if(!isPreload){E=-1;d=false;if(f){ie(v);ie(W);if(m){clearTimeout(m);m=null}}}if(l===false){var t=$();let e=t.querySelectorAll(‘style,link[rel=”stylesheet”]’);l=e.length;if(l){let e=document.getElementById(“nitro-deferred-styles-marker”);e.replaceWith.apply(e,t.childNodes)}else if(isPreload){U(te)}else{ne()}}else if(l===0&&!isPreload){ne()}};var V=function(){var e=$();var t=e.childNodes;var n;var r=[];for(var i=0;idocument.documentElement.clientHeight*.5;if(location.hash||w){f=false}o=u.default.concat(u.touch);a=setTimeout(NPRL.loadQueuedResources,1500);re(W);if(w){NPRL.loadQueuedResources()}else{window.addEventListener(“load”,NPRL.loadQueuedResources)}},addPrerequisite:function(e){P.push(e)}}}();var NPh,NitroPackHelper;NPh=NitroPackHelper=function(){var a=document.write;return{documentWrite:function(e,t){if(e&&e.hasAttribute(“nitro-exclude”)){return a.call(document,t)}var n=null;if(e.documentWriteContainer){n=e.documentWriteContainer}else{n=document.createElement(“span”);e.documentWriteContainer=n}var r=null;if(e){if(e.hasAttribute(“data-nitro-for-id”)){r=document.querySelector(‘template[data-nitro-marker-id=”‘+e.getAttribute(“data-nitro-for-id”)+'”]’)}else{r=e}}n.innerHTML+=t;n.querySelectorAll(“script”).forEach(function(e){e.setAttribute(“nitro-document-write”,””)});if(!n.parentNode){if(r){r.parentNode.insertBefore(n,r)}else{document.body.appendChild(n)}}var i=document.createElement(“span”);i.innerHTML=t;var o=i.querySelectorAll(“script”);if(o.length){o.forEach(function(t){var e=t.getAttributeNames();var n=document.createElement(“script”);e.forEach(function(e){n.setAttribute(e,t.getAttribute(e))});n.async=false;if(!t.src&&t.textContent){n.textContent=t.textContent}NPRL.loadJs(n,r)})}},TrustLogo:function(e,t){var n=document.getElementById(e);var r=document.createElement(“img”);r.src=t;n.parentNode.insertBefore(r,n)},documentReadyState:”loading”,ogReadyState:document.readyState,startedScriptLoading:false,loadScriptDelayed:function(t,e){setTimeout(function(){var e=document.createElement(“script”);e.src=t;document.head.appendChild(e)},e)}}}();document.write=function(e){NPh.documentWrite(document.currentScript,e)};document.writeln=function(e){NPh.documentWrite(document.currentScript,e+”n”)};]]> -1){n.splice(t,1);i.disconnect();c()}e.contentWindow.location.replace(e.getAttribute(“nitro-og-src”))}function l(){if(!i){i=new MutationObserver(function(e,a){e.forEach(n=>{if(n.type==”attributes”&&n.attributeName==”src”){let t=n.target;let r=t.getAttribute(“nitro-og-src”);let i=t.src;if(i!=r){a.disconnect();let e=i.replace(n.oldValue,””);if(i.indexOf(“data:”)===0&&[“?”,”&”].indexOf(e.substr(0,1))>-1){if(r.indexOf(“?”)>-1){t.setAttribute(“nitro-og-src”,r+”&”+e.substr(1))}else{t.setAttribute(“nitro-og-src”,r+”?”+e.substr(1))}}t.src=n.oldValue;c()}}})})}return i}function s(e){l().observe(e,r)}function c(){n.forEach(s)}function u(){window.removeEventListener(“scroll”,u);window.nitro_lazySizesConfig.expand=300}window.addEventListener(“scroll”,u,{passive:true});window.addEventListener(“NitroStylesLoaded”,function(){a=true});window.addEventListener(“load”,function(){t=true});window.addEventListener(“message”,function(e){if(e.data.action&&e.data.action===”playBtnClicked”){var t=document.getElementsByTagName(“iframe”);for(var r=0;r{if(t.getAttribute(“nitro-og-src”).indexOf(“vimeo”)>-1){t.realGetAttribute=t.getAttribute;Object.defineProperty(t,”src”,{value:t.getAttribute(“nitro-og-src”),writable:false});Object.defineProperty(t,”getAttribute”,{value:function(e){if(e==”src”){return t.realGetAttribute(“nitro-og-src”)}else{return t.realGetAttribute(e)}},writable:false})}n.push(t)});c()})})();]]>d.left&&Gd.top-1&&F500?500:370:d.expand,c._defEx=r,s=r*d.expFactor,t=d.hFac,J=null,O2&&o>2&&!b.hidden?(O=s,Q=0):O=o>1&&Q>1&&P<6?r:N),q!==m&&(y=innerWidth+m*t,D=innerHeight+m,n=-1*m,q=m),h=u[f].getBoundingClientRect(),(I=h.bottom)>=n&&(F=h.top)=n*t&&(G=h.left)9)break}else!k&&l&&!j&&P<4&&Q<4&&o>2&&(g[0]||d.preloadAfterLoad)&&(g[0]||!p&&(I||H||G||F||”auto”!=u[f][i](d.sizesAttr)))&&(j=g[0]||u[f]);j&&!k&&aa(j)}},V=B(U),W=function(a){var b=a.target;if(b._lazyCache)return void delete b._lazyCache;R(a),s(b,d.loadedClass),t(b,d.loadingClass),u(b,Y),v(b,”lazyloaded”)},X=A(W),Y=function(a){X({target:a.target})},Z=function(a,b){try{a.contentWindow.location.replace(b)}catch(c){a.src=b}},$=function(a){var b,c=a[i](d.srcsetAttr);(b=d.customMedia[a[i](“data-media”)||a[i](“media”)])&&a.setAttribute(“media”,b),c&&a.setAttribute(“srcset”,c)},_=A(function(a,b,c,e,f){var g,h,j,l,o,p;(o=v(a,”lazybeforeunveil”,b)).defaultPrevented||(e&&(c?s(a,d.autosizesClass):a.setAttribute(“sizes”,e)),h=a[i](d.srcsetAttr),g=a[i](d.srcAttr),f&&(j=a.parentNode,l=j&&n.test(j.nodeName||””)),p=b.firesLoad||”src”in a&&(h||g||l),o={target:a},s(a,d.loadingClass),p&&(clearTimeout(m),m=k(R,2500),u(a,Y,!0)),l&&q.call(j.getElementsByTagName(“source”),$),h?a.setAttribute(“srcset”,h):g&&!l&&(L.test(a.nodeName)?Z(a,g):a.src=g),f&&(h||l)&&w(a,{src:g})),a._lazyRace&&delete a._lazyRace,t(a,d.lazyClass),z(function(){var b=a.complete&&a.naturalWidth>1;p&&!b||(b&&s(a,”ls-is-cached”),W(o),a._lazyCache=!0,k(function(){“_lazyCache”in a&&delete a._lazyCache},9)),”lazy”==a.loading&&P–},!0)}),aa=function(a){if(!a._lazyRace){var b,c=K.test(a.nodeName),e=c&&(a[i](d.sizesAttr)||a[i](“sizes”)),f=”auto”==e;(!f&&l||!c||!a[i](“src”)&&!a.srcset||a.complete||r(a,d.errorClass)||!r(a,d.lazyClass))&&(b=v(a,”lazyunveilread”).detail,f&&E.updateElem(a,!0,a.offsetWidth),a._lazyRace=!0,P++,_(a,b,f,e,c))}},ba=C(function(){d.loadMode=3,V()}),ca=function(){3==d.loadMode&&(d.loadMode=2),ba()},da=function(){if(!l){if(f.now()-p<999)return void k(da,999);l=!0,d.loadMode=3,V(),j("scroll",ca,!0)}};return{_:function(){p=f.now(),c.elements=b.getElementsByClassName(d.lazyClass),g=b.getElementsByClassName(d.lazyClass+" "+d.preloadClass),j("scroll",V,!0),j("resize",V,!0),a.MutationObserver?new MutationObserver(V).observe(e,{childList:!0,subtree:!0,attributes:!0}):(e[h]("DOMNodeInserted",V,!0),e[h]("DOMAttrModified",V,!0),setInterval(V,999)),j("hashchange",V,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach(function(a){b[h](a,V,!0)}),/d$|^c/.test(b.readyState)?da():(j("load",da),b[h]("DOMContentLoaded",V),k(da,2e4)),c.elements.length?(U(),z._lsFlush()):V()},checkElems:V,unveil:aa,_aLSL:ca}}(),E=function(){var a,c=A(function(a,b,c,d){var e,f,g;if(a._lazysizesWidth=d,d+="px",a.setAttribute("sizes",d),n.test(b.nodeName||""))for(e=b.getElementsByTagName("source"),f=0,g=e.length;f=0&&n1e12?new Date:performance.now())-e.timeStamp;”pointerdown”==e.type?function(e,t){var n=function(){T(e,t),r()},i=function(){r()},r=function(){removeEventListener(“pointerup”,n,h),removeEventListener(“pointercancel”,i,h)};addEventListener(“pointerup”,n,h),addEventListener(“pointercancel”,i,h)}(t,e):T(t,e)}},L=function(e){[“mousedown”,”keydown”,”touchstart”,”pointerdown”].forEach((function(t){return e(t,S,h)}))},w=new Set;e.getCLS=function(e,t){l||(p((function(e){g=e.value})),l=!0);var n,i=function(t){g>-1&&e(t)},r=a(“CLS”,0),s=0,d=[],m=function(e){if(!e.hadRecentInput){var t=d[0],i=d[d.length-1];s&&e.startTime-i.startTime<1e3&&e.startTime-t.startTime<5e3?(s+=e.value,d.push(e)):(s=e.value,d=[e]),s>r.value&&(r.value=s,r.entries=d,n())}},v=o(“layout-shift”,m);v&&(n=f(i,r,t),u((function(){v.takeRecords().map(m),n(!0)})),c((function(){s=0,g=-1,r=a(“CLS”,0),n=f(i,r,t)})))},e.getFCP=p,e.getFID=function(e,i){var s,d=v(),m=a(“FID”),p=function(e){e.startTime DevriX » Tutorials » How to Keep Your SEO Rankings After Redesigning Your WordPress Site 0){for(let e=0;e-1)return;for(let r=0;r d){o.push(i)}else{f(i)}}}}}if(typeof NPRL!==”undefined”){f(document.body);let t=o.length;let n;for(let e=0;e
Here’s the Source of this Content