<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The Magento Expert</title>
	<atom:link href="https://www.the-mage-expert.com/tag/jquery/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.the-mage-expert.com</link>
	<description>Your Magento Commerce Expert</description>
	<lastBuildDate>Wed, 18 Nov 2026 21:23:52 +0000</lastBuildDate>
	<language>de-DE</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.8.6</generator>
	<item>
		<title>Using jQuery and domReady in a static block or CMS page</title>
		<link>https://www.the-mage-expert.com/1227/magento2-using-jquery-domready-static-block-cms-page/</link>
		<comments>https://www.the-mage-expert.com/1227/magento2-using-jquery-domready-static-block-cms-page/#comments</comments>
		<pubDate>Mon, 23 Jan 2023 13:25:55 +0000</pubDate>
		<dc:creator><![CDATA[]]></dc:creator>
				<category><![CDATA[Magento Solutions]]></category>
		<category><![CDATA[block]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Magento 2]]></category>

		<guid isPermaLink="false">https://www.the-mage-expert.com/?p=1227</guid>
		<description><![CDATA[Using jQuery in a Magento 2 static block or CMS page can be tricky, a special syntax is required. Use the following code to add jQuery when all the content was loaded: Of course, you can skip listening to domReady&#8230;]]></description>
				<content:encoded><![CDATA[<p>Using jQuery in a Magento 2 static block or CMS page can be tricky, a special syntax is required. Use the following code to add jQuery when all the content was loaded: </p>
<pre lang='script'>
<script>
    require([
        'jquery'
        ,'domReady!'
    ], function ($) {
         console.log('whatever');
    });
</script>
</pre>
<p>Of course, you can skip listening to domReady event! Just remove the domReady line, like this:</p>
<pre lang='script'>
<script>
    require([
        'jquery'
    ], function ($) {
         console.log('whatever');
    });
</script>
</pre>]]></content:encoded>
			<wfw:commentRss>https://www.the-mage-expert.com/1227/magento2-using-jquery-domready-static-block-cms-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using jQuery with domReady in a CMS page or static block</title>
		<link>https://www.the-mage-expert.com/2041/using-jquery-with-domready-in-a-cms-page-or-static-block/</link>
		<comments>https://www.the-mage-expert.com/2041/using-jquery-with-domready-in-a-cms-page-or-static-block/#comments</comments>
		<pubDate>Mon, 09 Jan 2023 12:29:27 +0000</pubDate>
		<dc:creator><![CDATA[Mex]]></dc:creator>
				<category><![CDATA[Magento Solutions]]></category>
		<category><![CDATA[block]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Magento 2]]></category>

		<guid isPermaLink="false">https://www.the-mage-expert.com/?p=2041</guid>
		<description><![CDATA[Want to use jQuery in a static block or CMS page? No problem! Open the page or block in Magento 2 admin and insert the following code: [crayon-6b0203cf3bf03/] If you do not want to wait for the domReady event, simply&#8230;]]></description>
				<content:encoded><![CDATA[<p>Want to use jQuery in a static block or CMS page? No problem! Open the page or block in Magento 2 admin and insert the following code:</p><pre class="crayon-plain-tag">&lt;script&gt;
    require([
        'jquery'
        ,'domReady!'
    ], function ($) {
         console.log('whatever');
    });
&lt;/script&gt;</pre><p>If you do not want to wait for the domReady event, simply remove the corresponding line. The code then looks like this:</p><pre class="crayon-plain-tag">&lt;script&gt;
    require([
        'jquery'
    ], function ($) {
         console.log('whatever');
    });
&lt;/script&gt;</pre><p></p>]]></content:encoded>
			<wfw:commentRss>https://www.the-mage-expert.com/2041/using-jquery-with-domready-in-a-cms-page-or-static-block/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using jQuery in a template (phtml)</title>
		<link>https://www.the-mage-expert.com/1822/using-jquery-in-a-template-phtml/</link>
		<comments>https://www.the-mage-expert.com/1822/using-jquery-in-a-template-phtml/#comments</comments>
		<pubDate>Tue, 21 Sep 2021 21:15:46 +0000</pubDate>
		<dc:creator><![CDATA[Mex]]></dc:creator>
				<category><![CDATA[Magento Solutions]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Magento 2]]></category>

		<guid isPermaLink="false">https://www.the-mage-expert.com/?p=1822</guid>
		<description><![CDATA[The following code shows how to load and use jQuery in a Magento 2 .phtml template. [crayon-6b0203cf431ca/]]]></description>
				<content:encoded><![CDATA[<p>The following code shows how to load and use jQuery in a Magento 2 .phtml template.</p><pre class="crayon-plain-tag">&lt;script&gt;
    // Separate additional libraries with commas
    // In this example, jQuery UI
    require(['jquery', 'jquery/ui'], function($){
        $(document).ready( function() {
            alert(&quot;fertig :-)&quot;);
        });
    });
&lt;/script&gt;</pre><p></p>]]></content:encoded>
			<wfw:commentRss>https://www.the-mage-expert.com/1822/using-jquery-in-a-template-phtml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
