Skip to content

Commit

Permalink
Merge pull request Shopify#136 from Shopify/remove-domContentLoaded
Browse files Browse the repository at this point in the history
Remove load on DOMContentLoaded
  • Loading branch information
t-kelly authored Dec 19, 2018
2 parents bc4d81a + 8390553 commit 8608228
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/scripts/templates/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import {load} from '@shopify/theme-sections';
import '../sections/product';

document.addEventListener('DOMContentLoaded', () => {
load('*');
});
load('*');
4 changes: 1 addition & 3 deletions src/scripts/templates/product.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import {load} from '@shopify/theme-sections';
import '../sections/product';

document.addEventListener('DOMContentLoaded', () => {
load('*');
});
load('*');

0 comments on commit 8608228

Please sign in to comment.