473,651 Members | 3,032 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Eliminate render-blocking css in google page speed insights

1 New Member
I am frustrating css rendering problem. According to Google PageSpeed Insights, My website speed is 71/100. I can remove almost error but I can't solve css rendering problem.
Expand|Select|Wrap|Line Numbers
  1. Your page has 1 blocking CSS resources. This causes a delay in rendering your page. 
Actually my website has only one minified css file. When I search google, they suggest me to keep css files in head section and js files in above closing body tag, but it doesn't work. I try using all method and ideas which are found in google. Async or defer to js file doesn't work for me. Using noscript tag to css, css doesn't work. I try calling css from document.write function, still it doesn't work. I try removing inline css and all js file, but problem can't be solved. According to google page speed insights suggestion I include following code.
Expand|Select|Wrap|Line Numbers
  1. <script>
  2. var cb = function() {
  3.     var l = document.createElement('link'); l.rel = 'stylesheet';
  4.     l.href = 'krishisansar.com/css/camera.min.css';
  5.     var h = document.getElementsByTagName('head')[0]; h.parentNode.insertBefore(l, h);
  6.   };
  7.   var raf = requestAnimationFrame || mozRequestAnimationFrame ||
  8.       webkitRequestAnimationFrame || msRequestAnimationFrame;
  9.   if (raf) raf(cb);
  10.   else window.addEventListener('load', cb);
  11. </script>
but it is also helpless.

Many WordPress expert advice to use plugin, but my website doesn't use any platform like WP. I know, if I can fix this error, website speed will increase. How to fix this error ? Does css structure affect in this case ?
Feb 23 '15 #1
0 1476

Sign in to post your reply or Sign up for a free account.

Similar topics

1
2645
by: while_1 | last post by:
If I have a links page that uses php header calls, for each link, to jump to an external page, does Google see those links as "internal to my site" or do they get counted as links to the redirect? IE: people ask me to exchange links all the time. Sometimes (usually not) I do it, but always with a link to in interal-to-my site file that has a header("Location: http://someothersite.com");
5
2587
by: adrianTNT | last post by:
Hello; Anyone knows how can I create a scrip that returns the google page rank of a given web page? I have seen this on many web pages but I want to host my own script and I dont know how it is made. I want it to be something like this: http://www.googlecommunity.com/scripts/pagerank.php?url=www.adriantnt.com
32
3533
by: sandy | last post by:
I have a hobby website at: http://www.montana-riverboats.com which also resolves as: http://montana-riverboats.com ...without the www. One address has a Google page rank of three. The other address has a Google page rank of four. (at least according to the Firefox page rank plugin).
1
1495
by: oforia | last post by:
is there a way to insert a google page into my application and parse it into xml without using the google api kit?
2
1399
by: jojoba | last post by:
hi welcome to cross domain fun! i am serving an asp page. i have an iframe in the page pointing to another domain, say, http://www.google.com. ok, i know, different domains. i know i can communicate data between the parent page and the iframe using the fragment identifier technique. however, i would like to be able to actually get data, via javascript,
0
1691
globalguideline
by: globalguideline | last post by:
Hi all here any one knows how to get the Google page rank of any web site with out using the Google tool bar mean using any web language like PHP, ASP, .Net, JavaScript etc. at run time mean by accessing the application from hosted server at run time we will give the url of any web site and result for given URL will be the Google Page Rank of that’s provided URL. Please help me to do it. Thanks. Ali
2
1116
by: senpark15 | last post by:
hi everybody, I want to access google search page results from windows application using C# and store into Sql Server database? can anybody help me?
0
8361
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8278
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8807
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8701
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8466
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8584
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5615
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4290
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1912
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.