Change "Exclude inline JS" arrays to a JSON / XML file #1860
Labels
duplicate
Indicates similar issues or pull requests
module: file optimization
priority: low
Issues that can wait
type: enhancement
Improvements that slightly enhance existing functionality and are fast to implement
There are a couple of large arrays related to exclude inline JS, exclude external JS file path, get_move_after_inline_scripts, CPCSS exclusions. Some of these arrays it seems that lately are growing really fast.
A possible solution would be to export those to a JSON / XML file. Also we can add some extra infos related to each exclusion (eg. plugin name) so in the future we can easily identify and group the JS, CPCSS incompatibilities with third party plugins.
Inline JS -
wp-rocket/inc/classes/optimization/JS/class-combine.php
Line 383 in 46c21aa
exclude external JS file path -
wp-rocket/inc/classes/optimization/JS/class-combine.php
Line 545 in 46c21aa
get_move_after_inline_scripts -
wp-rocket/inc/classes/optimization/JS/class-combine.php
Line 626 in 46c21aa
rocket_cpcss_excluded_post_types -
wp-rocket/inc/classes/optimization/CSS/class-critical-css.php
Line 182 in 46c21aa
rocket_cpcss_excluded_taxonomies -
wp-rocket/inc/classes/optimization/CSS/class-critical-css.php
Line 244 in 46c21aa
The text was updated successfully, but these errors were encountered: