Javascript Required Messages #177
Comments
This should be in a Also, the implementation brief doesn't cover the admin bar menu. |
|
@felixarntz for the admin pages it is specified to hook into |
|
@lucymtc Apologies, I originally wrote exactly the opposite of what I meant:
|
|
Implementation brief updated |
Just to clarify, I think this should be implemented as a trait with a protected method, as it's quite specific (the |
|
It's worth noting that Puppeteer has |
|
@felixarntz I updated the IB to include the Activation notice/app since this hadn't changed since July. I also added a point to use CSS to hide loading bars, etc using core's |
|
Thanks for the follow up screenshots @cole10up. I think they may be out of order or missing a few though. To clarify a few things:
|
|
Verified this message appears on the main dashboard, single page stats, settings page. |













When Javascript is disabled, Site Kit pages are blank and do not load. While WordPress' functionality is severely limited if Javascript is disabled, it would be good to at least display a message in a
<noscript>tag when loading SiteKit pages that Javascript is required to use Site Kit.Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation Brief
Requires_Javascripttrait in theCore/Utilnamespace which provides aget_noscript_htmlmethod to return the<noscript>html as a string. This way we have a single source for all places we need to include the tag.<noscript>tag to the Screenrender()methodsite-kit-wp/includes/Core/Admin/Screen.php
Lines 204 to 210 in b42304c
which calls
render_callback()from each screen to ensure the tag is included for all Site Kit screens.The tag should only be rendered if there is a
render_callback<noscript>tag to the admin bar inAdmin_Bar::menu_markup()<noscript>tag to the activation banner inActivation::get_activation_noticebody.no-jsclassbody.no-js #js-googlesitekit-*QA Brief
Affected areas
Expected Notice when JS is disabled
Steps
Changelog entry
The text was updated successfully, but these errors were encountered: