Remove Render-Blocking JavaScripts

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
8 years ago
evgeniygerasimov wrote:
Hi there.

I bought the plugin. It is nice, thanks. But it does not yet function properly. I got couple of problems with it. The main one is that it removed render-blocking CSS for mobile, but stile no luck with desktop. I use the responsive theme, but that should not probably matter.

Can you have a look. I think you just have not covered all the possible cases. And here you go.

Run the test on http://galeria.com.ua and go to desktop tab.

Thank you.


Hi.

We will send will the best configuration option and you will see that plugin is pretty good. Don't worry. Check your email and follow our instructions.

About exe files, the next version will fix it too.
8 years ago
ivanslater wrote:
Hi there!

The 1.03 version is available and have a lot of improvements.

Now, compatible with NopCommerce 3.5

You can find it here: http://www.nop-store.com/en/pagespeed-insights

Thanks!


Hi, i tried to purchase your plugin, unfortunately captcha on your website is broken so contact form or registration doesn't work.

Did anyone tried this plugin at all and does this plugin works with nop-templates nitro theme?
8 years ago
It is fixed. Sorry!
7 years ago
Sorry for the offtopic, but anyone knows what happened with the author of the plugin pagespeed-insights, ivanslater?

I've seen his web is off, and he removed all his social accounts..

We buy it a license 2 weeks ago, he answer the mail with the license but it's not working, and he is not answering the emails..

Again sorry for the offtopic, but I'm a bit concern.

Thanks.
6 years ago
The upcoming version 4.00 has this functionaltiy available out of the box. It allows a developer to decide what scripts should be moved to the footer. Here is the commit
6 years ago
ivanslater wrote:
Hi guys!

So, here is what we fixed in code:


if (content.Contains("</body>"))
                {
                    StringBuilder inline = new StringBuilder();
                    StringBuilder js = new StringBuilder();
                    StringBuilder css = new StringBuilder();

                    //inlinescript with tag <script type="text/javascript">
                    bool inlineScriptExist = content.Contains("<script type=");

                    while (inlineScriptExist)
                    {
                        int startTag = content.IndexOf(@"<script type=");
                        int endTag = content.IndexOf(@"</script>", startTag);
                        string script = content.Substring(startTag, endTag - startTag + 9);

                        string toReplace = content.Substring(startTag, content.IndexOf(">", startTag) + 1);

                        string inlinescript = script.Replace(toReplace, "").Replace("</script>", "");
                        inline.Append(inlinescript);
                        content = content.Replace(script, "");
                        inlineScriptExist = content.Contains("<script type=");
                    }

                    //inlinescript with tag <script>
                    inlineScriptExist = content.Contains("<script>");

                    while (inlineScriptExist)
                    {
                        int startTag = content.IndexOf(@"<script>");
                        int endTag = content.IndexOf(@"</script>", startTag);
                        string script = content.Substring(startTag, endTag - startTag + 9);
                        string inlinescript = script.Replace("<script>", "").Replace("</script>", "");
                        inline.Append(inlinescript);
                        content = content.Replace(script, "");
                        inlineScriptExist = content.Contains("<script>");
                    }

                    inlineScriptExist = content.Contains("<script src=");

                    //put js script src to bottom
                    while (inlineScriptExist)
                    {
                        int startTag = content.IndexOf(@"<script src=");
                        int endTag = content.IndexOf(@"</script>", startTag);
                        string script = content.Substring(startTag, endTag - startTag + 9);

                        js.Append(script);
                        content = content.Replace(script, "");
                        inlineScriptExist = content.Contains("<script src=");
                    }


Then, we finished a new plugin that will help a lot to get better results on Google PageSpeed Insights, you can get it here: https://www.nopcommerce.com/p/2046/pagespeed-insights.aspx


Hi, I sent a pm to you.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.