<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Manisha Sharma on Medium]]></title>
        <description><![CDATA[Stories by Manisha Sharma on Medium]]></description>
        <link>https://medium.com/@makarov1011?source=rss-4321a16b582f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*KZWWDepZBeYhpEH2mPD-7A.png</url>
            <title>Stories by Manisha Sharma on Medium</title>
            <link>https://medium.com/@makarov1011?source=rss-4321a16b582f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 07:43:32 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@makarov1011/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Rollup vs. Parcel vs. Webpack: Which is the Best Bundler?]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/better-programming/the-battle-of-bundlers-6333a4e3eda9?source=rss-4321a16b582f------2"><img src="https://cdn-images-1.medium.com/max/1696/1*i5qsV34DtRQkikbMqzWQ4g.png" width="1696"></a></p><p class="medium-feed-snippet">The battle of the bundlers</p><p class="medium-feed-link"><a href="https://medium.com/better-programming/the-battle-of-bundlers-6333a4e3eda9?source=rss-4321a16b582f------2">Continue reading on Better Programming »</a></p></div>]]></description>
            <link>https://medium.com/better-programming/the-battle-of-bundlers-6333a4e3eda9?source=rss-4321a16b582f------2</link>
            <guid isPermaLink="false">https://medium.com/p/6333a4e3eda9</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[es6]]></category>
            <category><![CDATA[frontend-development]]></category>
            <category><![CDATA[webpack]]></category>
            <dc:creator><![CDATA[Manisha Sharma]]></dc:creator>
            <pubDate>Mon, 25 Nov 2019 15:05:58 GMT</pubDate>
            <atom:updated>2019-12-17T17:48:37.707Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Stop videos embedded in your HTML script using JS]]></title>
            <link>https://makarov1011.medium.com/stop-videos-embedded-in-your-html-script-using-js-9eda5113f873?source=rss-4321a16b582f------2</link>
            <guid isPermaLink="false">https://medium.com/p/9eda5113f873</guid>
            <category><![CDATA[js]]></category>
            <category><![CDATA[html5]]></category>
            <category><![CDATA[videos]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[es6]]></category>
            <dc:creator><![CDATA[Manisha Sharma]]></dc:creator>
            <pubDate>Sun, 28 Apr 2019 19:11:26 GMT</pubDate>
            <atom:updated>2019-04-28T19:18:56.303Z</atom:updated>
            <content:encoded><![CDATA[<p>Here’s a simple solution to a very common issue faced when one embeds a native or 3rd party video in content oriented scripts such as sliders, tabs/icon tabs and modals — if you play the video and choose to collapse/slide or toggle or close the containing tag (slider/tab/modal), the video would continue to play.</p><p>I saw many solutions on stack exchange that would require you to modify the src of the element containing and call postMessage function. Well, all of that is an overkill for such a simple problem.</p><p>The following snippet will allow you to stop videos embedded in your HTML script, <strong>whether they are native to your website (in video tag) or embedded from 3rd party (Youtube, Vimeo, DailyMotion, etc) as an iframe and works in all modern browsers in addition to Internet Explorer 8 and above</strong> :-</p><pre>let videoStopper = function(id) {<br>    let containerElement = document.getElementById(id);<br>    let iframe_tag = containerElement.querySelector( &#39;iframe&#39;);<br>    let video_tag = containerElement.querySelector( &#39;video&#39; );<br>    if ( iframe_tag) {<br>        let iframeSrc = iframe_tag.src;<br>        iframe_tag.src = iframeSrc; <br>    }<br>    if ( video_tag) {<br>        video_tag.pause();<br>    }</pre><p>So all we are actually doing in the above snippet is reassigning the video source url to the iframe or video tag (in case of native videos embedded), and this will stop the video. We do so by getting a reference of the id of the element that contains the video or iframe tag in which the video is embedded.</p><p>Next step is to call this videoStopper function in the function that is triggered on sliding/collapsing/toggling/closing the parent element — the element in which the video/iframe tag rests, as illustrated below:</p><pre>HTML:</pre><pre>&lt;div id=&quot;videoContainer&quot;&gt;<br>&lt;iframe width=&quot;560&quot; height=&quot;315&quot; src=&quot;https://www.youtube.com/embed/TJ8TnlfzF4Q&quot; frameborder=&quot;0&quot; allow=&quot;accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture&quot; allowfullscreen&gt;<br>&lt;/iframe&gt;<br>&lt;/div&gt;</pre><pre>JS: <br>someFunction(){  //this helps close the parent element<br>videoStopper(&quot;videoContainer&quot;);  //this will stop the video<br>}</pre><p>Hope it helps! :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9eda5113f873" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>