Visit Crozet: 2021 Travel Guide for Crozet, Virginia


Visit Crozet: 2021 Travel Guide for Crozet, Virginia | Expedia=1&&e.nodeType<=12}return function n(t){if(1===t.length)return e(t[0])?t[0]:document.createTextNode(t[0]+"");for(var o=document.createDocumentFragment(),r=0;r=0&&h>=0&&{top:n,bottom:o,left:i,right:r,width:s,height:h}}function u(t){var e;try{e=t.getBoundingClientRect()}catch(n){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):a()}function a(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function l(t,e){for(var n=e;n;){if(n==t)return!0;n=p(n)}return!1}function p(t){var e=t.parentNode;return e&&11==e.nodeType&&e.host?e.host:e&&e.assignedSlot?e.assignedSlot.parentNode:e}var f=[];o.prototype.THROTTLE_TIMEOUT=100,o.prototype.POLL_INTERVAL=null,o.prototype.USE_MUTATION_OBSERVER=!0,o.prototype.observe=function(t){if(!this._observationTargets.some(function(e){return e.element==t})){if(!t||1!=t.nodeType)throw new Error(“target must be an Element”);this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},o.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter(function(e){return e.element!=t}),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},o.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},o.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},o.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter(function(t,e,n){if(“number”!=typeof t||isNaN(t)||t<0||t>1)throw new Error(“threshold must be a number between 0 and 1 inclusively”);return t!==n[e-1]})},o.prototype._parseRootMargin=function(t){var e=t||”0px”,n=e.split(/s+/).map(function(t){var e=/^(-?d*.?d+)(px|%)$/.exec(t);if(!e)throw new Error(“rootMargin must be specified in pixels or percent”);return{value:parseFloat(e[1]),unit:e[2]}});return n[1]=n[1]||n[0],n[2]=n[2]||n[0],n[3]=n[3]||n[1],n},o.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(s(t,”resize”,this._checkForIntersections,!0),s(e,”scroll”,this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&”MutationObserver”in t&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},o.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,h(t,”resize”,this._checkForIntersections,!0),h(e,”scroll”,this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},o.prototype._checkForIntersections=function(){var t=this._rootIsInDom(),e=t?this._getRootRect():a();this._observationTargets.forEach(function(o){var r=o.element,s=u(r),h=this._rootContainsTarget(r),c=o.entry,a=t&&h&&this._computeTargetAndRootIntersection(r,e),l=o.entry=new n({time:i(),target:r,boundingClientRect:s,rootBounds:e,intersectionRect:a});c?t&&h?this._hasCrossedThreshold(c,l)&&this._queuedEntries.push(l):c&&c.isIntersecting&&this._queuedEntries.push(l):this._queuedEntries.push(l)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},o.prototype._computeTargetAndRootIntersection=function(n,o){if(“none”!=t.getComputedStyle(n).display){for(var i=u(n),r=i,s=p(n),h=!1;!h;){var a=null,l=1==s.nodeType?t.getComputedStyle(s):{};if(“none”==l.display)return;if(s==this.root||s==e?(h=!0,a=o):s!=e.body&&s!=e.documentElement&&”visible”!=l.overflow&&(a=u(s)),a&&!(r=c(a,r)))break;s=p(s)}return r}},o.prototype._getRootRect=function(){var t;if(this.root)t=u(this.root);else{var n=e.documentElement,o=e.body;t={top:0,left:0,right:n.clientWidth||o.clientWidth,width:n.clientWidth||o.clientWidth,bottom:n.clientHeight||o.clientHeight,height:n.clientHeight||o.clientHeight}}return this._expandRectByRootMargin(t)},o.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map(function(e,n){return”px”==e.unit?e.value:e.value*(n%2?t.width:t.height)/100}),n={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},o.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1,o=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==o)for(var i=0;i0)&&!(o=i.next()).done;)a.push(o.value)}catch(c){r={error:c}}finally{try{o&&!o.done&&(n=i[“return”])&&n.call(i)}finally{if(r)throw r.error}}return a}function n(e,t,n,o,r,i,a,c){return it||i>e&&a=n?i-e-o:a>t&&c

“),r.close()),!r)throw Error(“base not supported”);var a=r.createElement(“base”);a.href=n,r.getElementsByTagName(“head”)[0].appendChild(a);var i=r.createElement(“a”);return i.href=t,i.href}finally{e&&e.parentNode.removeChild(e)}}());var l=i(t||””),f=function(){if(!(“defineProperties”in Object))return!1;try{var e={};return Object.defineProperties(e,{prop:{get:function(){return!0}}}),e.prop}catch(t){return!1}}(),h=f?this:document.createElement(“a”),m=new o(l.search?l.search.substring(1):null);return m._url_object=h,Object.defineProperties(h,{href:{get:function(){return l.href},set:function(e){l.href=e,r(),u()},enumerable:!0,configurable:!0},origin:{get:function(){return”origin”in l?l.origin:this.protocol+”//”+this.host},enumerable:!0,configurable:!0},protocol:{get:function(){return l.protocol},set:function(e){l.protocol=e},enumerable:!0,configurable:!0},username:{get:function(){return l.username},set:function(e){l.username=e},enumerable:!0,configurable:!0},password:{get:function(){return l.password},set:function(e){l.password=e},enumerable:!0,configurable:!0},host:{get:function(){var e={“http:”:/:80$/,”https:”:/:443$/,”ftp:”:/:21$/}[l.protocol];return e?l.host.replace(e,””):l.host},set:function(e){l.host=e},enumerable:!0,configurable:!0},hostname:{get:function(){return l.hostname},set:function(e){l.hostname=e},enumerable:!0,configurable:!0},port:{get:function(){return l.port},set:function(e){l.port=e},enumerable:!0,configurable:!0},pathname:{get:function(){return”/”!==l.pathname.charAt(0)?”/”+l.pathname:l.pathname},set:function(e){l.pathname=e},enumerable:!0,configurable:!0},search:{get:function(){return l.search},set:function(e){l.search!==e&&(l.search=e,r(),u())},enumerable:!0,configurable:!0},searchParams:{get:function(){return m},enumerable:!0,configurable:!0},hash:{get:function(){return l.hash},set:function(e){l.hash=e,r()},enumerable:!0,configurable:!0},toString:{value:function(){return l.toString()},enumerable:!1,configurable:!0},valueOf:{value:function(){return l.valueOf()},enumerable:!1,configurable:!0}}),h}var c,s=e.URL;try{if(s){if(“searchParams”in(c=new e.URL(“http://example.com”))){var f=new l(“http://example.com”);if(f.search=”a=1&b=2″,”http://example.com/?a=1&b=2″===f.href&&(f.search=””,”http://example.com/”===f.href))return}”href”in c||(c=undefined),c=undefined}}catch(m){}if(Object.defineProperties(o.prototype,{append:{value:function(e,t){this._list.push({name:e,value:t}),this._update_steps()},writable:!0,enumerable:!0,configurable:!0},”delete”:{value:function(e){for(var t=0;t1?arguments[1]:undefined;this._list.forEach(function(n){e.call(t,n.value,n.name)})},writable:!0,enumerable:!0,configurable:!0},toString:{value:function(){return r(this._list)},writable:!0,enumerable:!1,configurable:!0},sort:{value:function p(){for(var e=this.entries(),t=e.next(),n=[],r={};!t.done;){var a=t.value,i=a[0];n.push(i),Object.prototype.hasOwnProperty.call(r,i)||(r[i]=[]),r[i].push(a[1]),t=e.next()}n.sort();for(var o=0;o

COVID-19 alert: Travel requirements are changing rapidly, including need for pre-travel COVID-19 testing and quarantine on arrival.

Shenandoah National Park

Romantic Crozet is calling! Discover its wineries, food, hiking, and more.

Experience the walkable area of Crozet—wineries, restaurants, and sights from Starr Hill Brewery to White Hall Vineyards.

Stay in Crozet Mountain Suite in Downtown Crozet

Stay in Crozet Mountain Suite in Downtown Crozet

The price is $150 per night from Aug 31 to Aug 31$150

per night

Aug 31 – Sep 1

Situated in a rural location, this apartment building is 0.8 mi (1.2 km) from Starr Hill Brewery and 2.2 mi (3.5 km) from King Family Vineyards. Stinson Vineyards …

4.9/5Exceptional! (73 reviews)

“What a cute place! Huge room with a GORGEOUS old tin ceiling, nice furniture and decorations, very thoughtful amenities, very easy access to the unit. We will definitely stay here again!”

Reviewed on Jul 19, 2021

Stay in Crozet Mountain Suite in Downtown CrozetMontfair Resort Farm

2500 Bezaleel Drive, Crozet, VA

Situated in Crozet, this resort is 2.9 mi (4.7 km) from White Hall Vineyards and within 6 mi (10 km) of Stinson Vineyards and Grace Estate Winery. Glass House …

4.7/5Exceptional! (34 reviews)

“The area was terrific around The cabin was quiet and dark at night. Great place to get a good night sleep and relax”

Reviewed on Jun 9, 2021

Montfair Resort FarmStay in Crozet Train Suite in Downtown Crozet

Stay in Crozet Train Suite in Downtown Crozet

The price is $150 per night from Aug 26 to Aug 26$150

per night

Aug 26 – Aug 27

Situated in Crozet, this historic apartment building is 0.7 mi (1.2 km) from Starr Hill Brewery and 2.2 mi (3.5 km) from King Family Vineyards. Stinson Vineyards …

4.8/5Exceptional! (11 reviews)

Sweet Train Suite

“Very easy stop on my drive through Virginia. Loved my stay in Crozet. Bonus that there was a coffee shop right below!”

Reviewed on Aug 20, 2021

Stay in Crozet Train Suite in Downtown Crozet

Lowest nightly price found within the past 24 hours based on a 1 night stay for 2 adults. Prices and availability subject to change. Additional terms may apply.

Stay in Crozet Mountain Suite in Downtown Crozet

Stay in Crozet Mountain Suite in Downtown Crozet

The price is $150 per night from Aug 31 to Aug 31$150

per night

Aug 31 – Sep 1

Situated in a rural location, this apartment building is 0.8 mi (1.2 km) from Starr Hill Brewery and 2.2 mi (3.5 km) from King Family Vineyards. Stinson Vineyards …

4.9/5Exceptional! (73 reviews)

“What a cute place! Huge room with a GORGEOUS old tin ceiling, nice furniture and decorations, very thoughtful amenities, very easy access to the unit. We will definitely stay here again!”

Reviewed on Jul 19, 2021

Stay in Crozet Mountain Suite in Downtown CrozetStay in Crozet Train Suite in Downtown Crozet

Stay in Crozet Train Suite in Downtown Crozet

The price is $150 per night from Aug 26 to Aug 26$150

per night

Aug 26 – Aug 27

Situated in Crozet, this historic apartment building is 0.7 mi (1.2 km) from Starr Hill Brewery and 2.2 mi (3.5 km) from King Family Vineyards. Stinson Vineyards …

4.8/5Exceptional! (11 reviews)

Sweet Train Suite

“Very easy stop on my drive through Virginia. Loved my stay in Crozet. Bonus that there was a coffee shop right below!”

Reviewed on Aug 20, 2021

Stay in Crozet Train Suite in Downtown CrozetModern Luxury Apartment Located in Heart of Downtown Crozet!

Modern Luxury Apartment Located in Heart of Downtown Crozet!

Situated in Crozet, this apartment building is 0.8 mi (1.3 km) from Starr Hill Brewery and 2.1 mi (3.5 km) from King Family Vineyards. Stinson Vineyards and …

4.8/5Exceptional! (12 reviews)

August 2021

“Only issue was a leak in the roof from the rain but it didn’t really cause a problem. It was acknowledged and assuming will be dealt with. The elevator broker during our stay as wel but was address quickly. Overall liked the condo and the location was great.”

Reviewed on Aug 21, 2021

Modern Luxury Apartment Located in Heart of Downtown Crozet!

Lowest nightly price found within the past 24 hours based on a 1 night stay for 2 adults. Prices and availability subject to change. Additional terms may apply.

Check Crozet hotel prices

Popular places to visit in Crozet

Image for Starr Hill Brewery

Starr Hill Brewery

4.5/5(4 reviews)

You can take time to visit Starr Hill Brewery during your travels to Crozet. Attend a sporting event or simply enjoy the top-notch restaurants while you’re in the area.

Starr Hill BreweryImage for Doyles River Falls

Take a peaceful trek on this trail through the woods and find abundant wildlife and two waterfalls within a short distance.

Doyles River FallsImage for King Family Vineyards

King Family Vineyards

5/5(1 review)

You can enjoy a tasting or tour at King Family Vineyards during your travels to Crozet. Wander the college campus in this vibrant area.

King Family VineyardsImage for University of Virginia

University of Virginia

4.5/5(683 reviews)

Walk around the campus of University of Virginia, a top college in Charlottesville. Experience the area’s acclaimed theater scene or attend a sporting event.

University of VirginiaImage for Monticello

Monticello

4.5/5(394 reviews)

You may recognise this elegant plantation estate, the historic home of Thomas Jefferson, from its depiction on the back of some U.S. nickels.

MonticelloImage for James Madison University

James Madison University

4.5/5(260 reviews)

Enjoy the collegiate vibe around James Madison University, a top university in Harrisonburg. Attend a football game in the area, or seek out the hiking trails.

James Madison University

Top things to do in Crozet

Cities near Crozet

Photo by Michael Gibson

Waynesboro

Photo by Sarah Nissen

Afton

Charlottesville featuring a house, a park and forests

Charlottesville

Photo by Michael Gibson

Dyke

72ecd3ad-028f-4ded-90b5-075dc2d291f7af0b5364-2755-4e69-88ce-74d7588067ce00000000-0000-0000-554d-2d0bc7e6fcfd

=0&&(“string”!=typeof t&&”number”!=typeof t&&null!=t||(this[e]=t))},e.prototype.getContext=function(){return Object.assign({},this)},e.prototype.setContext=function(e,t){if(void 0===t&&(t=!1),t)for(var n in this)this.hasOwnProperty(n)&&delete this[n];if(“object”==typeof e&&null!==e)for(var n in e)e.hasOwnProperty(n)&&this.set(n,e[n])},e}();t.AnalyticsContextImpl=n,t.AnalyticsContext=new n},69090:function(e,t,n){Object.defineProperty(t,”__esModule”,{value:!0}),t.performanceMetrics=void 0;var i=function(){for(var e=[],t=0;te.MAX_BEACONS&&(e.beacons.length=e.MAX_BEACONS):e.beacons=[],e.beacons.unshift(t),t.onerror=e.onerror,t.src=n},e.prototype.send=function(){e.send(this.image,this.url)},e.beacons=[],e.MAX_BEACONS=9,e}();t.Beacon=n},88859:function(e,t,n){Object.defineProperty(t,”__esModule”,{value:!0}),t.ClientLogger=void 0;var i,o=n(67701),r=n(28330),s=n(11342),a=n(40129),c=function(){function e(t){this.logFormat=o.LogFormat.STRING,this.identifier=t.length>e.MIN_IDENTIFIER_LENGTH?t:””}return e.setGlobalData=function(e,t){e&&null!=t&&(s.__globalData[e]=t)},e.getGlobalData=function(e){return s.__globalData[e]},e.setClientLoggingInstance=function(e){i=e},e.getLoggerWithIdentifier=function(t){return new e(t)},e.prototype.performance=function(){for(var e=[],t=0;t0){var n=1===e.length?e[0]:e;i.logTrxEvent(this.identifier,n)}},e.prototype.logEvent=function(e){for(var t=[],n=1;n0&&(n.label=e,n[e+”_elapsedTime”]=(new Date).getTime()-this._startTime),t&&(“string”==typeof t?t={message:t}:t instanceof Array&&(t={message:t.toString()}),Object.keys(t).length>0&&(n=i(i(i({},t),a.__globalData),n),this.sendPerfBeacon(n)))},e.prototype.logMessage=function(t,n){var o={systemEvent:t.systemEvent,label:t.label,url:'”‘+e.cleanString(window.location.href||””)+'”‘};if(n&&(“string”==typeof n?n={message:n}:n instanceof Array?n={message:n.toString()}:n instanceof Error&&(n={message:n.message}),Object.keys(n).length>0)){var r=i(i(i({},n),a.__globalData),o);this.sendMessageBeacon(r)}},e.prototype.logErrorDetails=function(t){var n=””,i=t.error,o=t.message,r=t.url,s=t.line,a=t.col;i&&i instanceof Error||(i={});var c=i.descriptor||””,u=i.severity||”unclassified”,l=i.errorCatalogRef||””,f=document.documentElement&&document.documentElement.clientWidth||0;i.stack&&(n=i.stack,n='”‘+e.cleanString(n)+'”‘),o&&0!==o.length||(o=i.message||i.name||””),r&&0!==r.length||(r=window.location.href||””,r='”‘+e.cleanString(r)+'”‘);var d={onErrorMsg:o='”‘+e.cleanString(o)+'”‘,onErrorUrl:r,onErrorLine:s?String(s):””,onErrorCol:a?String(a):””,onErrorStack:n,clientWidth:f,severity:u,descriptor:c,errorCatalogRef:l};this.logMessage(t,d)},e.prototype.flattenFields=function(e,t,n){var i,o=this;return void 0===t&&(t={}),”object”==typeof e&&e&&Object.keys(e).forEach((function(r){i=n?n+”_”+r:r,”object”==typeof e[r]?o.flattenFields(e[r],t,i):t[i]=e[r]})),t},e.getISODateString=function(e){return e.toISOString?e.toISOString():e.getFullYear().toString()+”-“+e.getMonth()+”-“+e.getDate()+”T”+e.getHours()+”:”+e.getMinutes()+”:”+e.getSeconds()},e.getPageName=function(){return r.AnalyticsContext.pageName||”page.undefined”},e.paramsFromObject=function(e){var t,n=[];if(Object.keys(e).length>0)for(var i in e)t=i+”=”+encodeURIComponent(String(e[i]).replace(/n|r/gm,””)),n.push(t);return n.join(“&”)},e.prototype.sendMessageBeacon=function(t){var n;t&&Object.keys(t).length>0&&(n=i(i({action:”logErrors”,logTime:e.getISODateString(new Date),pageName:e.getPageName()},t),this._fixedParams),new s.Beacon(this._messageBeaconUrl+”?”+e.paramsFromObject(n)).send())},e.prototype.sendPerfBeacon=function(t){var n;t&&Object.keys(t).length>0&&(n=i(i({action:”logTrxEvent”,logTime:e.getISODateString(new Date),pageName:e.getPageName()},t),this._fixedParams),new s.Beacon(this._perfBeaconUrl+”?”+e.paramsFromObject(n)).send())},e.cleanString=function(e){return”string”==typeof e?e.replace(/’/gi,”`”).replace(/(vrnt)/gi,” “).replace(/(s)+/gi,” “):””},e}();t.ClientLogging=u},11342:function(e,t){Object.defineProperty(t,”__esModule”,{value:!0}),t.__globalData=void 0,t.__globalData={}},82040:function(e,t,n){Object.defineProperty(t,”__esModule”,{value:!0});var i=n(88859);Object.defineProperty(t,”ClientLogger”,{enumerable:!0,get:function(){return i.ClientLogger}})},2638:function(e,t){Object.defineProperty(t,”__esModule”,{value:!0}),t.getErrorString=void 0,t.getErrorString=function(e){return”Error(name=”+e.name+”, message=”+e.message+”, stack=”+e.stack+”)”}},67701:function(e,t,n){var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)”default”===n||t.hasOwnProperty(n)||i(t,e,n)};Object.defineProperty(t,”__esModule”,{value:!0}),o(n(26422),t),o(n(37099),t),o(n(26422),t),o(n(89137),t),o(n(2638),t)},89137:function(e,t){Object.defineProperty(t,”__esModule”,{value:!0})},26422:function(e,t){var n;Object.defineProperty(t,”__esModule”,{value:!0}),t.NOOP_LOGGER=t.LogFormat=void 0,function(e){e.STRING=”string”,e.JSON=”json”}(n=t.LogFormat||(t.LogFormat={})),t.NOOP_LOGGER={logFormat:n.STRING,logEvent:function(e){for(var t=[],n=1;n=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?”Object is not iterable.”:”Symbol.iterator is not defined.”)};e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,”a”,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=””,n(n.s=4)}([function(e,t){var n;n=function(){return this}();try{n=n||Function(“return this”)()||(0,eval)(“this”)}catch(i){“object”==typeof window&&(n=window)}e.exports=n},function(e,t,n){(function(t){var n=function(){var e=window.performance,n=((e||{}).timing||{}).navigationStart||i();function o(){return void 0===t.gaMarks&&(t.gaMarks=[]),t.gaMarks}function r(){return void 0===t.gaMeasures&&(t.gaMeasures=[]),t.gaMeasures}function s(){return”function”==typeof(window&&window.performance||{}).now?e.now():i()-n}function a(e){return c(u(),e)}function c(e,t){var n=e.filter((function(e){return e.name===t}));return n.length>0?n[0]:void 0}function u(){return”function”==typeof(e||{}).getEntriesByType?e.getEntriesByType(“mark”):”function”==typeof(e||{}).webkitGetEntriesByType?e.webkitGetEntriesByType(“mark”):o()}return{mark:function(t){“function”==typeof(e||{}).mark?e.mark(t):”function”==typeof(e||{}).webkitMark?e.webkitMark(t):o().push({name:t,entryType:”mark”,startTime:s(),duration:0})},measure:function(t,n,i){if(“function”==typeof(e||{}).measure)e.measure(t,n,i);else if(“function”==typeof(e||{}).webkitMeasure)e.webkitMeasure(t,n,i);else{var o=0,c=s();if(n){var u=a(n);u?o=u.startTime:((e||{}).timing||{})[n]&&(o=e.timing[n]-e.timing.navigationStart)}if(i){var l=a(i);l?c=l.startTime:((e||{}).timing||{})[i]&&(c=e.timing[i]-e.timing.navigationStart)}r().push({name:t,entryType:”measure”,startTime:o,duration:c-o})}},getGaMarks:o,getGaMeasures:r,getEntriesByName:function(t){return”function”==typeof(e||{}).getEntriesByName?e.getEntriesByName(t):”function”==typeof(e||{}).webkitGetEntriesByName?e.webkitGetEntriesByName(t):[]},findMark:a,findMeasure:function(t){return c(function(){if(“function”==typeof(e||{}).getEntriesByType)return e.getEntriesByType(“measure”);if(“function”==typeof(e||{}).webkitGetEntriesByType)return e.webkitGetEntriesByType(“measure”);return r()}(),t)},clearMarks:function(n){“function”==typeof(e||{}).clearMarks?e.clearMarks(n):t.gaMarks=u().filter((function(e){return e.name!==n}))},findSpecificRow:c,toJSON:function(){return”function”==typeof(e||{}).toJSON?e.toJSON():{timing:(e||{}).timing||{}}}}}();function i(){return”function”==typeof Date.now?Date.now():Number(new Date)}e.exports=n}).call(t,n(0))},function(e,t,n){(function(t){var i=n(3);function o(e){i.isTestEnvironment()&&console.log(e)}e.exports={toLogStore:function(e){try{(i.isTestEnvironment()||function(e){if(“undefined”==typeof document||void 0===document.cookie)return!1;return-1!==document.cookie.indexOf(e)}(“paLogStore=true”))&&(t&&t.paLogStore&&Array.isArray(t.paLogStore)||(t.paLogStore=[],t.paLogStoreSize=100),t.paLogStore.push(e),t.paLogStore.length>t.paLogStoreSize&&t.paLogStore.shift())}catch(n){o(n)}},log:o}}).call(t,n(0))},function(e,t,n){(function(t){var n=/(?:(?:test|int|stress).expedia.com|exp-(?:test|int).net|karmalab.net|expedmz.com|staging.*.(?:traveltainment.de|myersmediagroup.com)|localhost|docweb.exp-tools.net)$/i;function i(){return”undefined”!=typeof window}function o(){return i()&&window.performance}e.exports={isTestEnvironment:function(){return i()&&”undefined”!=typeof location?Boolean(location.hostname.match(n)):-1===[“prod”,”production”].indexOf(t.env.NODE_ENV)},isLocalEnvironment:function(){return”undefined”!=typeof location&&”localhost”===location.hostname},isBrowser:i,isPerformanceTimingSupported:function(){return o()&&window.performance.timing&&void 0!==window.performance.timing.navigationStart},isPerformanceMarkSupported:function(){return o()&&(“function”==typeof window.performance.mark||”function”==typeof window.performance.webkitMark)},isTrackingDisabled:function(){return i()&&navigator&&”1″===navigator.doNotTrack},isBeaconSupported:function(){return i()&&navigator&&”function”==typeof navigator.sendBeacon}}}).call(t,n(19))},function(e,t,n){var i=n(5);e.exports=new i},function(e,t,n){(function(t){var i=n(6),o=n(1),r=n(18),s=”Page Usable”,a=”Page Change”,c=[“deviceId”,”siteId”,”requestId”,”pageName”,”additionalData”];function u(e,t){e&&c.forEach((function(n){e.hasOwnProperty(n)&&(“siteId”===n&&isNaN(e[n])?console.log(“WARNING: siteId must be Integer!”):t[n]=e[n])}))}var l=function(){function e(e){var t=this;void 0===e&&(e={}),this.ctx={},this.waitingMessage={},this.setContext(e),this.findMark=function(e){return o.findMark(e)},this.findMeasure=function(e){return o.findMeasure(e)},this.clearMarks=function(e){return o.clearMarks(e)},this.mark=function(e){return o.mark(e)},this.measure=function(e,t,n){return o.measure(e,t,n)},this.pul=function(e,n){void 0===t.puListener?(t.puListener=e,t.puScope=n):console.log(“PageUsableListener has already been initialized”)}}return e.prototype.setContext=function(e){u(e,this.ctx)},e.prototype.getFilteredPageUsableTime=function(){var e=this.getPageUsableTime();return e&&e.length>0&&(e=parseFloat((e[0].startTime/1e3).toFixed(2))),e},e.prototype.justMarkPageUsable=function(e,t){var n=this;void 0===e&&(e=function(){}),(t||e&&(e.callback||e.microMessages))&&(this.microMessages=(e||{}).microMessages||t.microMessages,e=(e||{}).callback||t.callback),setTimeout((function(){n.findMark(s)?console.log(“WARNING: marking a page that was already usable – value won’t be updated – use reset() first”):(n.clearMarks(s),n.mark(s));var t=n.getFilteredPageUsableTime();”function”==typeof n.puListener&&n.puListener.call(n.puScope,t),”function”==typeof e&&e(t,n.ctx)}),50)},e.prototype.publish=function(e){var t=(e||{}).pageUsableTime||this.getFilteredPageUsableTime(),n=(e||{}).microMessages||[];if(this.PlatformAnalytics&&”function”==typeof this.PlatformAnalytics.getInstance&&this.PlatformAnalytics.getInstance())i.publishPageUsableToUisPrime(this.PlatformAnalytics.getInstance(),n,t),this.waitingMessage={};else if(e&&e.uisPrime)this.waitingMessage={uisPrime:!0,microMessages:n,pageUsableTime:t};else if(this.setContext(e),this.findMark(s))try{!function(e,t){var n={};u(e,n),n.pageUsableTime=t,r.publish(n)}(this.ctx,this.getFilteredPageUsableTime())}catch(o){console.log(“Unable to publish performance metrics”+o.message)}else console.log(“WARNING: trying to publish before page being usable”)},e.prototype.markPageUsable=function(e,n,i){var o=this;if(void 0===e&&(e={}),void 0===n&&(n=function(){}),i||e.microMessages||e.callback){var r=e.microMessages||(i||{}).microMessages;n=e.callback||(i||{}).callback,this.justMarkPageUsable({microMessages:r,callback:function(e){o.publish({uisPrime:!0,microMessages:r}),n(e)}})}else this.setContext(e),this.justMarkPageUsable((function(e,i){if(isNaN(o.ctx.siteId)){var r=isNaN(t.siteid)?isNaN(t.site_id)?isNaN(t.siteId)?NaN:t.siteId:t.site_id:t.siteid;isNaN(r)||(i.siteId=parseInt(r,10))}o.publish(i),”function”==typeof n&&n(e,i)}))},e.prototype.getPageUsableTime=function(){var e=(this.findMark(s)||{}).startTime-((this.findMark(a)||{}).startTime||0);return Math.round(10*e)/10},e.prototype.reset=function(e){this.setContext(e),this.clearMarks(s),this.clearMarks(a),this.mark(a)},e.prototype.setPlatformAnalyticsClass=function(e,t){void 0===t&&(t={isPublishWebVitals:!1}),this.PlatformAnalytics=e,this.waitingMessage.pageUsableTime?this.publish(this.waitingMessage):this.findMark(s)&&this.publish({uisPrime:!0}),i.publishInteractionMetrics(this.PlatformAnalytics.getInstance()),t.isPublishWebVitals&&i.publishWebVitals(this.PlatformAnalytics.getInstance())},e.prototype.publishWebVitals=function(){this.PlatformAnalytics&&”function”==typeof this.PlatformAnalytics.getInstance&&this.PlatformAnalytics.getInstance()&&i.publishWebVitals(this.PlatformAnalytics.getInstance())},e}();e.exports=l}).call(t,n(0))},function(e,t,n){(function(t){var i=n(7),o=n(9),r=n(1),s=n(11),a=n(12),c=n(13),u=n(14),l=n(15),f={navigator:t.navigator||{}};e.exports={publishInteractionMetrics:function(e){if(e&&”function”==typeof e.trackEvent){i.collect({schemaName:”interactivityMetrics”,messageContent:{}},(function(t){o.collect(t,s,(function(t){0!==Object.keys(t.messageContent).length&&e.trackEvent(t,”page-usable”)}))}))}else console.error(“[PerformanceMetrics] cannot publish interactionMetrics to Uis Prime (platformAnalytics not defined)”)},publishPageUsableToUisPrime:function(e,t,n){if(void 0===t&&(t=[]),void 0===n&&(n=0),e&&”function”==typeof e.trackEvent){Array.isArray(t)||(t=[t]);var i={schemaName:”performanceMetrics”,messageContent:{markName:”Page Usable”,markValue:n}};c.collect(i,f),a.collect(i,r,(function(n){u.collect(n,r,(function(n){t.push(n),e.trackEvent(t,”page-usable”)}))}))}else console.error(“[PerformanceMetrics] cannot publish page usable to Uis Prime (platformAnalytics not defined)”)},publishWebVitals:function(e){if(e&&”function”==typeof e.trackEvent){var t=l.uisPrimeOnReport(e);l.report(t)}else console.error(“[PerformanceMetrics] cannot publish web vitals to Uis Prime (platformAnalytics not defined)”)}}}).call(t,n(0))},function(e,t,n){(function(t){n(8),e.exports={collect:function(e,n){try{t.perfMetrics.onFirstInputDelay((function(t){t&&(e.messageContent.firstInputDelay=t),n(e)}))}catch(i){n(e)}}}}).call(t,n(0))},function(e,t){!function(e,t){var n,i,o,r=[],s={passive:!0,capture:!0},a=new Date,c=”pointerup”,u=”pointercancel”;function l(e,r){n||(n=r,i=e,o=new Date,m(t),f())}function f(){i>=0&&i1e12?new Date:performance.now())-n.timeStamp;”pointerdown”==n.type?function(n,i){function o(){l(n,i),a()}function r(){a()}function a(){t(c,o,s),t(u,r,s)}e(c,o,s),e(u,r,s)}(i,n):l(i,n)}}function m(e){[“click”,”mousedown”,”keydown”,”touchstart”,”pointerdown”].forEach((function(t){e(t,d,s)}))}m(e),self.perfMetrics=self.perfMetrics||{},self.perfMetrics.onFirstInputDelay=function(e){r.push(e),f()}}(addEventListener,removeEventListener)},function(e,t,n){n(10),e.exports={collect:function(e,t,n){try{t.getFirstConsistentlyInteractive().then((function(t){t&&(e.messageContent.timeToInteractive=t),n(e)}))}catch(i){n(e)}}}},function(e,t,n){(function(e){!function(){if(“PerformanceLongTaskTiming”in e){var t=e.__tti={e:[]};t.o=new PerformanceObserver((function(e){t.e=t.e.concat(e.getEntries())})),t.o.observe({entryTypes:[“longtask”]})}}()}).call(t,n(0))},function(e,t,n){(function(n){var i;!function(){var o=”undefined”!=typeof window&&window===this?this:void 0!==n&&null!=n?n:this,r=”function”==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){e!=Array.prototype&&e!=Object.prototype&&(e[t]=n.value)};function s(){s=function(){},o.Symbol||(o.Symbol=c)}var a=0;function c(e){return”jscomp_symbol_”+(e||””)+a++}function u(){s();var e=o.Symbol.iterator;e||(e=o.Symbol.iterator=o.Symbol(“iterator”)),”function”!=typeof Array.prototype[e]&&r(Array.prototype,e,{configurable:!0,writable:!0,value:function(){return l(this)}}),u=function(){}}function l(e){var t=0;return function(e){return u(),(e={next:e})[o.Symbol.iterator]=function(){return this},e}((function(){return to-n?n=null:n=5e3>o-(n=r.length?r[r.length-1].end:t)?null:Math.max(n,i),n&&(e.s(n),clearTimeout(e.j),e.i=!1,e.c&&e.c.disconnect(),e.h&&e.h.disconnect()),y(e,performance.now()+1e3)}),t-performance.now()),e.v=t)}h.prototype.getFirstConsistentlyInteractive=function(){var e=this;return new Promise((function(t){e.s=t,”complete”==document.readyState?w(e):window.addEventListener(“load”,(function(){w(e)}))}))},h.prototype.m=function(e){this.f.set(e,performance.now())},h.prototype.l=function(e){this.f.delete(e)},h.prototype.B=function(){y(this,performance.now()+5e3)},o.Object.defineProperties(h.prototype,{g:{configurable:!0,enumerable:!0,get:function(){return[].concat(d(this.f.values()))}}});var b={getFirstConsistentlyInteractive:function(e){return e=e||{},”PerformanceLongTaskTiming”in window?new h(e).getFirstConsistentlyInteractive():Promise.resolve(null)}};void 0!==e&&e.exports?e.exports=b:void 0===(i=function(){return b}.apply(t,[]))||(e.exports=i)}()}).call(t,n(0))},function(e,t,n){(function(t){function n(e,t,n,i){void 0!==n&&void 0!==i&&(e[t]=n-i)}e.exports={collect:function(e,i,o){var r=i.toJSON();void 0!==r.timing?(n(e.messageContent,”dnsLookupTime”,r.timing.domainLookupEnd,r.timing.domainLookupStart),n(e.messageContent,”timeToFirstByte”,r.timing.responseStart,r.timing.fetchStart),n(e.messageContent,”tcpConnectionTime”,r.timing.connectEnd,r.timing.connectStart),n(e.messageContent,”pageLoadTime”,r.timing.domContentLoadedEventEnd,r.timing.navigationStart),e.messageContent.pageLoadTime&&e.messageContent.pageLoadTime<0?t.addEventListener("load",(function(){n(e.messageContent,"pageLoadTime",r.timing.domContentLoadedEventEnd,r.timing.navigationStart),o(e)})):o(e)):o(e)}}}).call(t,n(0))},function(e,t){function n(e,t,n){void 0!==n&&(e[t]=n)}e.exports={collect:function(e,t){if(t&&t.navigator){var i=t.navigator,o=i.connection||i.mozConnection||i.webkitConnection;o&&(n(e.messageContent,"networkEffectiveType",o.effectiveType),n(e.messageContent,"networkDownLink",o.downlink))}}}},function(e,n,i){(function(n){e.exports={collect:function(e,i,o){if(void 0!==n.PerformancePaintTiming){var r=i.getEntriesByName("first-contentful-paint");if(r&&r.length>0){var s=r[0];return e.messageContent.firstContentfulPaint=Math.round(s.startTime+s.duration),void o(e)}if(void 0!==n.PerformanceObserver)new n.PerformanceObserver((function(n){var i,r;try{for(var s=t(n.getEntries()),a=s.next();!a.done;a=s.next()){var c=a.value;”first-contentful-paint”===c.name&&(e.messageContent.firstContentfulPaint=Math.round(c.startTime+c.duration),o(e))}}catch(u){i={error:u}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}})).observe({entryTypes:[“paint”]});else o(e)}else o(e)}}}).call(n,i(0))},function(e,t,n){var i=n(16),o=n(17),r=function(){};e.exports={report:function(e){“undefined”!=typeof window&&e&&”function”==typeof e&&(i.getCLS(e),i.getLCP(e))},uisPrimeOnReport:function(e){var t=r;return e&&”function”==typeof e.trackEvent?t=function(t){e.trackEvent(o.webVitalsMapper(t),”timing”)}:console.error(“[PerformanceMetrics] cannot publish web vitals to Uis Prime (platformAnalytics not defined)”),t}}},function(e,t,n){Object.defineProperty(t,”__esModule”,{value:!0}),n.d(t,”getCLS”,(function(){return p})),n.d(t,”getFCP”,(function(){return v})),n.d(t,”getFID”,(function(){return h})),n.d(t,”getLCP”,(function(){return y})),n.d(t,”getTTFB”,(function(){return b}));var i,o,r=function(){return””.concat(Date.now(),”-“).concat(Math.floor(8999999999999*Math.random())+1e12)},s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return{name:e,value:t,delta:0,entries:[],id:r(),isFinal:!1}},a=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var n=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return n.observe({type:e,buffered:!0}),n}}catch(e){}},c=!1,u=!1,l=function(e){c=!e.persisted},f=function(){addEventListener(“pagehide”,l),addEventListener(“unload”,(function(){}))},d=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];u||(f(),u=!0),addEventListener(“visibilitychange”,(function(t){var n=t.timeStamp;”hidden”===document.visibilityState&&e({timeStamp:n,isUnloading:c})}),{capture:!0,once:t})},m=function(e,t,n,i){var o;return function(){n&&t.isFinal&&n.disconnect(),t.value>=0&&(i||t.isFinal||”hidden”===document.visibilityState)&&(t.delta=t.value-(o||0),(t.delta||t.isFinal||void 0===o)&&(e(t),o=t.value))}},p=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=s(“CLS”,0),o=function(e){e.hadRecentInput||(i.value+=e.value,i.entries.push(e),t())},r=a(“layout-shift”,o);r&&(t=m(e,i,r,n),d((function(e){var n=e.isUnloading;r.takeRecords().map(o),n&&(i.isFinal=!0),t()})))},g=function(){return void 0===i&&(i=”hidden”===document.visibilityState?0:1/0,d((function(e){var t=e.timeStamp;return i=t}),!0)),{get timeStamp(){return i}}},v=function(e){var t,n=s(“FCP”),i=g(),o=a(“paint”,(function(e){“first-contentful-paint”===e.name&&e.startTime0){for(var i=0;i


Source

Leave a Comment

Your email address will not be published.

Translate »