Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CS: load script in a non-page-render-blocking manner #46

Merged
merged 1 commit into from
Oct 17, 2019

Conversation

jrfnl
Copy link
Contributor

@jrfnl jrfnl commented Aug 1, 2019

By loading scripts in the footer of a page, the page rendering is not blocked by the script download.

Includes minor code layout reformatting for readability.

Technical

  • Added grunt shell:phpcs override. Travis failed when calling vendor/squizlabs/php_codesniffer/scripts/phpcs (defined in @yoast/plugin-grunt-tasks) but in this version of php_codesniffer it is located in vendor/squizlabs/php_codesniffer/bin/phpcs.

Testing

Highly recommended!

@jrfnl jrfnl added this to the Next release milestone Aug 1, 2019
@jrfnl

This comment has been minimized.

@abotteram abotteram self-assigned this Oct 17, 2019
By loading scripts in the footer of a page, the page rendering is not blocked by the script download.

Includes minor code layout reformatting for readability.
@abotteram abotteram force-pushed the JRF/CSQA/script-loading-in-footer branch from e9148ee to 5f8bd02 Compare October 17, 2019 11:42
@abotteram
Copy link

CR 👍

@abotteram abotteram assigned jrfnl and unassigned abotteram Oct 17, 2019
@abotteram abotteram force-pushed the JRF/CSQA/script-loading-in-footer branch from 342b068 to 5f8bd02 Compare October 17, 2019 13:49
@abotteram abotteram merged commit b7e4458 into trunk Oct 17, 2019
@abotteram abotteram deleted the JRF/CSQA/script-loading-in-footer branch October 17, 2019 13:49
@karlijnbok karlijnbok modified the milestones: 1.6.0, 1.7.0 Apr 28, 2021
@karlijnbok karlijnbok added the changelog: non-user-facing Needs to be included in the 'Non-userfacing' category in the changelog label Apr 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog: non-user-facing Needs to be included in the 'Non-userfacing' category in the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants