WPIntell

Source evidence

jQuery dependency

DCO Comment Attachment · support · 2024-12-30T16:55:00+00:00

mixedsentiment
lowseverity
0.62relevance
2replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

5 / 27 rows with source links

18.5% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

22 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
back2music resolved
Hello Denis! You announced “Removing jQuery dependency from frontend” in v1.3, but WP still loads Jquery scripts after activating the plugin. Is there a way to avoid loading Jquery? Thanks! Hello @back2music , I plan to fix it in the next version. As for fixing it now, I think the easiest way is to remove the jQuery dependency in the plugin code. If this is ok for you, then you need to replace wp_enqueue_script( 'dco-comment-attachment', DCO_CA_URL . 'assets/dco-comment-attachment.js', array( 'jquery' ), DCO_CA_VERSION, true ); with wp_enqueue_script( 'dco-comment-attachment', DCO_CA_URL . 'assets/dco-comment-attachment.js', array(), DCO_CA_VERSION, true ); File: includes/class-dco-ca.php, line: 89. https://github.com/yadenis/DCO-Comment-Attachment/blob/master/includes/class-dco-ca.php#L89 This should help. It works fine, thank you and happy New Year!

Comments

2 shown
Denis Yanchevskiy 2024-12-30T18:48:00+00:00

Hello @back2music , I plan to fix it in the next version. As for fixing it now, I think the easiest way is to remove the jQuery dependency in the plugin code. If this is ok for you, then you need to replace wp_enqueue_script( 'dco-comment-attachment', DCO_CA_URL . 'assets/dco-comment-attachment.js', array( 'jquery' ), DCO_CA_VERSION, true ); with wp_enqueue_script( 'dco-comment-attachment', DCO_CA_URL . 'assets/dco-comment-attachment.js', array(), DCO_CA_VERSION, true ); File: includes/class-dco-ca.php, line: 89. https://github.com/yadenis/DCO-Comment-Attachment/blob/master/includes/class-dco-ca.php#L89 This should help.

back2music 2024-12-30T19:42:00+00:00

It works fine, thank you and happy New Year!