Skip to content
This repository has been archived by the owner on Mar 29, 2021. It is now read-only.

Commit

Permalink
Fix render blocking JS
Browse files Browse the repository at this point in the history
  • Loading branch information
dsifford committed Nov 2, 2016
1 parent 91b8c25 commit 3acb30b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ services:
co-authors-plus,
log-deprecated-notices,
query-monitor,
relative-url,
# piglatin,
db:
image: mysql:5.7
Expand Down
4 changes: 2 additions & 2 deletions src/academic-bloggers-toolkit.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ function abt_frontend_scripts() {
wp_enqueue_style('abt_frontend_styles', plugins_url('academic-bloggers-toolkit/lib/css/frontend.css'), ['dashicons'], ABT_VERSION);

if (is_singular()) {
wp_enqueue_script('abt-bundle', plugins_url('academic-bloggers-toolkit/vendor/vendor.bundle.js'), [], ABT_VERSION);
wp_enqueue_script('abt_frontend_js', plugins_url('academic-bloggers-toolkit/lib/js/Frontend.js'), ['abt-bundle'], ABT_VERSION);
wp_enqueue_script('abt-bundle', plugins_url('academic-bloggers-toolkit/vendor/vendor.bundle.js'), [], ABT_VERSION, true);
wp_enqueue_script('abt_frontend_js', plugins_url('academic-bloggers-toolkit/lib/js/Frontend.js'), ['abt-bundle'], ABT_VERSION, true);
}
}
add_action('wp_enqueue_scripts', 'abt_frontend_scripts');
Expand Down
14 changes: 11 additions & 3 deletions tslint.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"extends": ["tslint:latest", "tslint-react", "tslint-microsoft-contrib"],
"extends": ["tslint:latest",
"tslint-react", "tslint-microsoft-contrib"],
"rulesDirectory": ["node_modules/tslint-microsoft-contrib"],
"rules": {
"curly": false,
Expand All @@ -23,6 +24,7 @@
"react-a11y-anchors": false,
"react-a11y-image-button-has-alt": false,
"no-backbone-get-set-outside-model": false,
"jsx-no-multiline-js": false,
"import-name": false,
"one-line": [false,
"check-open-brace",
Expand All @@ -39,7 +41,13 @@
"variable-name": [true,
"ban-keywords"
],
"jsx-no-multiline-js": false,
"whitespace": [true, "check-branch", "check-decl", "check-module", "check-separator", "check-type", "check-operator"]
"whitespace": [true,
"check-branch",
"check-decl",
"check-module",
"check-separator",
"check-type",
"check-operator"
]
}
}

0 comments on commit 3acb30b

Please sign in to comment.