<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									wp_register_script - wpdiscuz-combo-js - &#039;strategy&#039; =&gt; &#039;defer&#039; ? - General Discussions				            </title>
            <link>https://wpdiscuz.com/community/general-forum/wp_register_script-wpdiscuz-combo-js-strategy-defer/</link>
            <description>wpDiscuz WordPress Comment Plugin Community. Support and Resources.</description>
            <language>en-US</language>
            <lastBuildDate>Wed, 19 Aug 2026 15:33:08 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: wp_register_script - wpdiscuz-combo-js - &#039;strategy&#039; =&gt; &#039;defer&#039; ?</title>
                        <link>https://wpdiscuz.com/community/general-forum/wp_register_script-wpdiscuz-combo-js-strategy-defer/#post-24523</link>
                        <pubDate>Tue, 04 Jun 2024 10:00:15 +0000</pubDate>
                        <description><![CDATA[Hi,
You can use the hook code below. It allows you to add the attributes you want to any js code: 
add_filter(&#039;script_loader_src&#039;, &#039;custom_script_loader_src&#039;, 10, 2);
function custom_scri...]]></description>
                        <content:encoded><![CDATA[<p>Hi,</p>
<p>You can use the hook code below. It allows you to add the attributes you want to any js code: </p>
<pre contenteditable="false">add_filter('script_loader_src', 'custom_script_loader_src', 10, 2);
function custom_script_loader_src($src, $handle) {
    if ($handle !== 'wpdiscuz-combo-js') {
        return $src;
    }
    return $src . "'&amp;nbsp;defer";
}</pre>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/general-forum/">General Discussions</category>                        <dc:creator>Asti</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/general-forum/wp_register_script-wpdiscuz-combo-js-strategy-defer/#post-24523</guid>
                    </item>
				                    <item>
                        <title>wp_register_script - wpdiscuz-combo-js - &#039;strategy&#039; =&gt; &#039;defer&#039; ?</title>
                        <link>https://wpdiscuz.com/community/general-forum/wp_register_script-wpdiscuz-combo-js-strategy-defer/#post-24512</link>
                        <pubDate>Sun, 02 Jun 2024 11:44:15 +0000</pubDate>
                        <description><![CDATA[What is the reason that the wpdiscuz-combo-js is &gt;not&lt; registered  with &#039;strategy&#039; =&gt; &#039;defer&#039; (or at least configureable) ?
I had some problems with &quot;ReferenceError: jQuery is not ...]]></description>
                        <content:encoded><![CDATA[<p>What is the reason that the wpdiscuz-combo-js is &gt;not&lt; registered  with 'strategy' =&gt; 'defer' (or at least configureable) ?</p>
<p>I had some problems with "ReferenceError: jQuery is not defined at wpdiscuz-combo.min.js?ver=7.6.19:8:1", which are solveable with using defer.</p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/general-forum/">General Discussions</category>                        <dc:creator>JDO</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/general-forum/wp_register_script-wpdiscuz-combo-js-strategy-defer/#post-24512</guid>
                    </item>
							        </channel>
        </rss>
		