{"id":1110607,"date":"2016-05-04T10:33:12","date_gmt":"2016-05-04T17:33:12","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-js-conflict-2\/"},"modified":"2016-05-20T09:35:03","modified_gmt":"2016-05-20T16:35:03","slug":"google-maps-js-conflict-2","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-js-conflict-2\/","title":{"rendered":"Google Maps JS Conflict"},"content":{"rendered":"<p>Same exact issue as closed here from 2014: https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-js-conflict\/<\/p>\n<p>Thread states that dequeue google maps scripts will be easier in the future, the future is now, so how can I accomplish this?<\/p>\n<p>TEC is loading the google map api on more than just single event pages though, it loads it needlessly on the main events pages as well. So errors show on any Events page.  This is a TEC problem because other pages need to utilize google maps, so it&#8217;s being loaded on every page from another plugin. So the TEC version needs to go.<\/p>\n<p>Was hoping it would be as simple as this:<br \/>\nwp_dequeue_script( &#8216;tribe_events_google_maps_api&#8217; );<\/p>\n<p>But this has no affect when actioned to wp_enqueue_scripts.<\/p>\n<p>Additionally, possibly related or not- the console is littered with notices\/errors from TEC: <\/p>\n<p> [&#8220;TEC Debug: Tribe Events &#8230;d from tribe-events.js.&#8221;]<br \/>\ntribe-e&#8230;.min.js (line 1)<br \/>\nTEC Debug: Browser and events settings information:<br \/>\ntribe-e&#8230;.min.js (line 1)<br \/>\n[&#8220;TEC Debug: tribe-events.js successfully loaded&#8221;]<br \/>\ntribe-e&#8230;.min.js (line 1)<br \/>\n[&#8220;TEC Debug: tribe-events-pro.js successfully loaded&#8221;]<br \/>\ntribe-e&#8230;.min.js (line 1)<br \/>\n[&#8220;TEC Debug: bootstrapDate&#8230;ribe-events-bar.js&#8221; on:&#8221;, Object[input#tribe-bar-date attribute value = &#8220;&#8221;]]<br \/>\ntribe-e&#8230;.min.js (line 1)<br \/>\n[&#8220;TEC Debug: tribe-events-bar.js successfully loaded&#8221;]<br \/>\ntribe-e&#8230;.min.js (line 1)<br \/>\n[&#8220;TEC Debug: tribe-events-&#8230;.js successfully loaded&#8221;]<br \/>\ntribe-e&#8230;.min.js (line 1)<br \/>\n[&#8220;TEC Debug: tribe-events-&#8230;.js successfully loaded&#8221;]<br \/>\ntribe-e&#8230;.min.js (line 1)<br \/>\nTribe JS Init Timer: 195.57ms<br \/>\ntribe-e&#8230;.min.js (line 1)<br \/>\n[&#8220;TEC Debug: imagesLoaded &#8230; isotope on photo view.&#8221;]<\/p>\n","protected":false},"template":"","class_list":["post-1110607","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Google Maps JS Conflict -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-js-conflict-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Google Maps JS Conflict -\" \/>\n<meta property=\"og:description\" content=\"Same exact issue as closed here from 2014: https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-js-conflict\/ Thread states that dequeue google maps scripts will be easier in the future, the future is now, so how can I accomplish this? TEC is loading the google map api on more than just single event pages though, it loads it needlessly on the main events [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-js-conflict-2\/\" \/>\n<meta property=\"article:modified_time\" content=\"2016-05-20T16:35:03+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-js-conflict-2\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-js-conflict-2\/\",\"name\":\"Google Maps JS Conflict -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-05-04T17:33:12+00:00\",\"dateModified\":\"2016-05-20T16:35:03+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-js-conflict-2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-js-conflict-2\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-js-conflict-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Calendar Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Events Calendar PRO\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Google Maps JS Conflict\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Google Maps JS Conflict -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-js-conflict-2\/","og_locale":"en_US","og_type":"article","og_title":"Google Maps JS Conflict -","og_description":"Same exact issue as closed here from 2014: https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-js-conflict\/ Thread states that dequeue google maps scripts will be easier in the future, the future is now, so how can I accomplish this? TEC is loading the google map api on more than just single event pages though, it loads it needlessly on the main events [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-js-conflict-2\/","article_modified_time":"2016-05-20T16:35:03+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-js-conflict-2\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-js-conflict-2\/","name":"Google Maps JS Conflict -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-05-04T17:33:12+00:00","dateModified":"2016-05-20T16:35:03+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-js-conflict-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-js-conflict-2\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-js-conflict-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Calendar Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/"},{"@type":"ListItem","position":4,"name":"Events Calendar PRO","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/"},{"@type":"ListItem","position":5,"name":"Google Maps JS Conflict"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1110607","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":2,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1110607\/revisions"}],"predecessor-version":[{"id":1110747,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1110607\/revisions\/1110747"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1110607"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}