Skip to content

Debug add debug log#927

Open
timotei-litespeed wants to merge 1 commit into
litespeedtech:devfrom
timotei-litespeed:Optimizer-add_debug_test_defer
Open

Debug add debug log#927
timotei-litespeed wants to merge 1 commit into
litespeedtech:devfrom
timotei-litespeed:Optimizer-add_debug_test_defer

Conversation

@timotei-litespeed

Copy link
Copy Markdown
Contributor

Debug info added

Comment thread src/optimize.cls.php
}

if (strpos($ori, 'defer') !== false) {
self::debug2('bypass: attr defer exist');

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@timotei-litespeed I don't think this is necessary. If you see in code defer but no data-deferred="1", means its original added, not by us. All other returns we have log already (L1242 L1246)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hi-hai but it will stop the function and do not get to run L1242-1246.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you don't see any debug log but its deferred, meant it hit here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, is originally defer.
Adding this message will help debug why script is skipped

@timotei-litespeed timotei-litespeed changed the base branch from v7.7dev to dev October 20, 2025 19:23

@hi-hai hi-hai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will merge after optimize.cls reformatted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants