forked from WordPress/wordpress-develop
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Script Loading Strategy - ML2 #13 - Add get_eligible_loading_strategy
method
#35
Merged
kt-12
merged 57 commits into
enhancement/wp-script-api-strategy-base
from
enhancement/get_eligible_loading_strategy-ML2-12
Mar 1, 2023
Merged
Changes from all commits
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
20917f9
get_eligible_loading_strategy logic
kt-12 db02a89
Deferring strategy refined
kt-12 1114f35
Merge branch 'enhancement/wp-script-api-milestone1' into enhancement/…
kt-12 af30f17
Bug fix
kt-12 1d3c887
Merge branch 'enhancement/wp-script-api-milestone2' into enhancement/…
kt-12 2ed92d3
removing a few lines with function
kt-12 552d91a
removing default script strategy
kt-12 1eacd05
do_item strategy support
kt-12 4542775
bug fix
kt-12 60b460a
Merge branch 'enhancement/get_eligible_loading_strategy-ML2-12' into …
kt-12 d89ab9a
Strategy name update.
kt-12 4105504
fixing bug
kt-12 ceb670f
Merge branch 'enhancement/get_eligible_loading_strategy-ML2-12' into …
kt-12 a9eef9f
strategy test cases
kt-12 c2c1d07
cs fixes
kt-12 9eb3f89
opt-in + remove blocking after dep
kt-12 6cc7dec
Merge branch 'enhancement/get_eligible_loading_strategy-ML2-12' into …
kt-12 35279fc
complex condition towards end
kt-12 74e4aef
Merge branch 'enhancement/get_eligible_loading_strategy-ML2-12' into …
kt-12 1de0f31
if user not entered
kt-12 d5ebbc3
place comment in order
kt-12 8f14aad
Merge branch 'enhancement/get_eligible_loading_strategy-ML2-12' into …
kt-12 5795b4c
restore default values
kt-12 0ebfaa5
phpcs fixes
kt-12 f6b0483
Update text
kt-12 7b36d21
Readability
kt-12 f71319c
consistent with other docblock descriptions
kt-12 624e797
casting the result
kt-12 b7334b7
wordpress coding standards
kt-12 2cb01be
Merge branch 'enhancement/get_eligible_loading_strategy-ML2-12' of ht…
kt-12 5305f1c
restore test case
kt-12 073684a
add temporary ticket id
kt-12 5e343b8
fix test bug
kt-12 b56c0e1
restore test case
kt-12 9caf8bb
Merge branch 'enhancement/get_eligible_loading_strategy-ML2-12' into …
kt-12 b70ee6c
temporary ticket added for testing
kt-12 dbf6da9
Merge branch 'enhancement/get_eligible_loading_strategy-ML2-12' into …
kt-12 2deadcf
remove extra line
kt-12 fcaa62e
remove after dependency function
kt-12 150ba8b
Merge branch 'enhancement/get_eligible_loading_strategy-ML2-12' into …
kt-12 d578e50
fix doc block text
kt-12 5262bf7
Correct grammar
kt-12 2970f1a
Fix doc block string.
kt-12 28af60d
change variable name
kt-12 f746dfd
doc block changes, better word
kt-12 00a50d1
Merge branch 'enhancement/get_eligible_loading_strategy-ML2-12' into …
kt-12 d4bbaff
spacing issue.
kt-12 01e1d4f
update placeholder with numbered placeholder
kt-12 a367951
Change ticket id to trac id
kt-12 51e3e41
Switching from numbered to normal substitution
kt-12 62cbf60
Breaking test into multiple test functions
kt-12 0f80794
breaking test to dataprovider
kt-12 f20cfea
add async and defer check in dependent check
kt-12 e406a13
Merge branch 'enhancement/get_eligible_loading_strategy-ML2-12' into …
kt-12 b961108
defer with async dependent
kt-12 70fb6c6
Add failure messages
kt-12 2b3d11c
Merge pull request #38 from 10up/enhancement/do_item-ML2-14
kt-12 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: This needs to be optimised further. Better way of doing this is creating a dependents list as a hash table (added as a Dependencies to WP_Script) and updated dependents while each script is getting registered.
get_dependent
will simply fetch dependent from that hash table.