<?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>Tue, 24 Jan 2023 09:37:24 +0000</lastBuildDate>
	<language>en-US</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[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">http://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: [crayon-6a88941a47d24/] Of course, you can skip listening to&#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>
<p></p><pre class="crayon-plain-tag">&lt;script&gt;
    require([
        'jquery'
        ,'domReady!'
    ], function ($) {
         console.log('whatever');
    });
&lt;/script&gt;</pre><p>Of course, you can skip listening to domReady event! Just remove the domReady line, 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/1227/magento2-using-jquery-domready-static-block-cms-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
