Update crowdriff code
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 6 Jul 2016 18:24:21 +0000 (14:24 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 6 Jul 2016 18:24:21 +0000 (14:24 -0400)
try using async in the script tag

craft-beer-template.php
glm-members-only-template.php
index.php
page-3323.php
parts/slide-show.php
style.css

index 881996f..5cafb38 100644 (file)
@@ -6,7 +6,7 @@
 <?php get_header(); ?>
 <main class="page-inside">
     <div id="lens">
-        <script id="cr__init-38a0f95d" src="https://embed.crowdriff.com/js/init?hash=38a0f95d"></script>
+        <script id="cr__init-38a0f95d" src="https://embed.crowdriff.com/js/init?hash=38a0f95d" async></script>
     </div>
     <div id="content-wrapper">
         <div class="row">
index c8173ed..e6d7ca2 100644 (file)
@@ -15,8 +15,8 @@ Template Name: GLM Members Only Template
         <?php } else { ?>
             <div class="small-12 large-8 columns right">
         <?php } ?>
-                <div class="row"> 
-                    <div id="main-content" class="small-12 columns">   
+                <div class="row">
+                    <div id="main-content" class="small-12 columns">
                     <?php if (current_user_can("glm_members_member")) { ?>
                         <!-- If user is logged in as a member, display top bar, bread crumbs, & content -->
                         <?php get_template_part('parts/glm-members-only-top-bar'); ?>
@@ -43,7 +43,7 @@ Template Name: GLM Members Only Template
         </div>
         <?php if ((get_post_type( $post ) != "ai1ec_event") && ($post != get_post(3198))  && ($post != get_post(1140))) { ?>
         <div id="bottom-lens">
-            <script id="cr__init-b054762a" src="https://embed.crowdriff.com/js/init?hash=b054762a"></script>
+            <script id="cr__init-b054762a" src="https://embed.crowdriff.com/js/init?hash=b054762a" async></script>
         </div>
         <?php } ?>
     </div>
index cb46756..e26b8ad 100644 (file)
--- a/index.php
+++ b/index.php
@@ -26,7 +26,7 @@
         </div>
         <?php if ((get_post_type( $post ) != "ai1ec_event") && ($post != get_post(3198))  && ($post != get_post(1140))) { ?>
         <div id="bottom-lens">
-            <script id="cr__init-b054762a" src="https://embed.crowdriff.com/js/init?hash=b054762a"></script>
+            <script id="cr__init-b054762a" src="https://embed.crowdriff.com/js/init?hash=b054762a" async></script>
         </div>
         <?php } ?>
     </div>
index c013418..5702c80 100644 (file)
@@ -11,7 +11,7 @@
             <div class="small-12 large-8 columns right">
         <?php } ?>
                 <div class="row">
-   
+
                     <?php get_template_part('parts/bread-crumbs'); ?>
                     <div id="main-content" class="small-12 columns">
                         <?php get_template_part('parts/content-section'); ?>
@@ -62,7 +62,7 @@
         </div>
         <?php if ((get_post_type( $post ) != "ai1ec_event") && ($post != get_post(3198))  && ($post != get_post(1140))) { ?>
         <div id="bottom-lens">
-            <script id="cr__init-b054762a" src="https://embed.crowdriff.com/js/init?hash=b054762a"></script>
+            <script id="cr__init-b054762a" src="https://embed.crowdriff.com/js/init?hash=b054762a" async></script>
         </div>
         <?php } ?>
     </div>
index 5da4943..bac22cc 100644 (file)
@@ -1,6 +1,6 @@
 <?php if (is_front_page()) {
     echo '<div id="lens">';
-    echo '<script id="cr__init-b054762a" src="https://embed.crowdriff.com/js/init?hash=b054762a"></script>';
+    echo '<script id="cr__init-b054762a" src="https://embed.crowdriff.com/js/init?hash=b054762a" async></script>';
     echo '</div>';
 }
 ?>
index 1263593..e13bcf3 100644 (file)
--- a/style.css
+++ b/style.css
@@ -3,5 +3,5 @@ Theme Name: DiscoverKalamazoo
 Author: Gaslight Media
 Author URI: http://www.gaslightmedia.com
 Description: A theme for DiscoverKalamazoo
-Version: 1.0.6
+Version: 1.0.7
 */