Skip to content

Commit

Permalink
Dequeue js/no-js detection
Browse files Browse the repository at this point in the history
  • Loading branch information
schlessera committed Oct 1, 2019
1 parent 0e14ae2 commit b8b4d97
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions includes/sanitizers/class-amp-core-theme-sanitizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,20 @@ class AMP_Core_Theme_Sanitizer extends AMP_Base_Sanitizer {
*/
protected static $theme_features = [
// Twenty Nineteen.
'twentytwenty' => [
'twentytwenty' => [
// @todo Cover Modals (stripped with twentytwenty-js)
// @todo Smooth Scroll (stripped with twentytwenty-js)
// @todo Modal Menu (stripped with twentytwenty-js)
// @todo Primary Menu (stripped with twentytwenty-js)
// @todo Toggles (stripped with twentytwenty-js) - probably unneeded once the rest is done
'dequeue_scripts' => [
'dequeue_scripts' => [
'twentytwenty-js',
],
'remove_actions' => [
'wp_head' => [
'twentytwenty_no_js_class', // AMP is essentially no-js, with any interactively added explicitly via amp-bind.
],
],
],

// Twenty Nineteen.
Expand Down

0 comments on commit b8b4d97

Please sign in to comment.