Solution Enables Widget.js To Enable Blogger Widget

Updated on April 07, 2016
As we have seen, the default javascript loading donate Blogger blog is pretty good.Javascript default Blogger in no edit HTML, can only be seen through the page source blog. It turns out that most affect the loading of the blog is the blogger default javascript js to Google Plus. For that many blogger who hides widget.js Blogger with a reason to speed up loading the blog.

But with Blogger's default javascript hide then we can not use Blogger widgets that use js like widgets and other blog archives for his widget.js hidden.

AuthorAdhy Suriady
I have long been looking for this solution in order to use Blogger widget but has no effect on the loading blog (blocking-rendering js). But now I finally have a solution when it is making premium template so that the template can use Blogger widget but still have a fast loading.
Well now I will share this trick for you before I launch these premium templates.

If you've used a trick to hide widget.js Blogger that I've shared before of course you have to change the code </body> to  &lt;!--</body>--&gt; &lt;/body&gt;

Well to enable Blogger widget.js order to use Blogger widgets like archives blog, please save the code below the above code &lt;!--</body>--&gt; &lt;/body&gt;
<script type='text/javascript'>
//<![CDATA[
document.write("<scr" + "ipt type=\"text/javascript\" src=\"https://www.blogger.com/static/v1/widgets/707158982-widgets.js\"></scr" + "ipt>");
//]]>
</script>
<script type='text/javascript'>
//<![CDATA[
if (typeof(BLOG_attachCsiOnload) != 'undefined' && BLOG_attachCsiOnload != null) { window['blogger_templates_experiment_id'] = "templatesV1";window['blogger_blog_id'] = '2309821455564065710';BLOG_attachCsiOnload(''); }_WidgetManager._Init('//www.blogger.com/rearrange?blogID\x3d2309821455564065710','//kompiflexible.blogspot.com/','2309821455564065710');
_WidgetManager._RegisterWidget('_BlogArchiveView', new _WidgetInfo('BlogArchive1', 'sidebar', null, document.getElementById('BlogArchive1'), {'languageDirection': 'ltr'}, 'displayModeFull'));
//]]>
</script>
Code yellow BlogId please replace with your blog, please replace the red code with your blog url.

Green code is the code for the widget registers blog archives.

Well now you try to add a widget on the blog archive layout, so now toggle archives will definitely work.

To use other widgets like visitor counters are also using widget.js Blogger, please first add the widget in the layout and then view page source of your blog. Then find the code at the bottom that looks like the code I block green above for widget visitor counter, then copy and paste it in the edit HTML right under my code above the green block.

Do the same if you add more widgets. Good luck.
Share this: pinterest