How To Improve PageLoad Speed of website? - pagespeed

I have some question related to Page load speed. I am testing websites using gtmetrix.com. When Location is selected as India, It shows F grade and suggest to eliminate render-blocking elements(which is main css files.). For other locations it is showing fine grades and no render-blocking elements. Any suggestions to solve this problem?
Thank you so much.

Related

Desktop page speed fine, cannot get a passable mobile speed

I am running a light wordpress installation, with a light theme (neve). I am running a CDN (cloudflare), I am making most optimizations that I can think of with some room around images and custom code stripping.
However I am not even close for my pages and even if I test AMP pages which are stripped down I don't get a passing score which concerns me. Can anyone help me out, for example 1 of my blog post pages:
Amp report:
https://pagespeed.web.dev/report?url=https%3A%2F%2Fwww.culturalistpress.com%2Fanycubic-photon-mono-3d-printer-is-it-good-what-materials-can-it-use-what-software-does-it-use-and-how-does-it-compare-to-the-anycubic-mega-series%2F%3Famp%3D1
Not amp report:
https://pagespeed.web.dev/report?url=https%3A%2F%2Fwww.culturalistpress.com%2Fanycubic-photon-mono-3d-printer-is-it-good-what-materials-can-it-use-what-software-does-it-use-and-how-does-it-compare-to-the-anycubic-mega-series%2F
In both cases my main thread processing is too much and too much JS - short of that I don't see a lot of savings. Most the JS comes from ads which I don't understand why they are blocking in this case.
I have checked your both reports, the man issue is with Javascript. As your website has developed in WordPress use some 3rd party plugin like WProcket and perfmatters to reduce unused Javascript. Your page DOM size, it is created when you have too many sections in your page. Try to reduce those sections to reduce the page size, minimize the gap between paragraphs.
Adjust the images size and try to use WEBP format of images. Also check the compatibility of third party plugins with you WordPress version which you have installed.

Wordpress google mobile optimalisation

Since google updated their way of scoring mobile I have trouble to optimise my websites.
I want to know what am I doing wrong and what should be done to existing sites to make the score higher. Its easy to get 95-100 on desktop but on same site on mobile will be 25...
Before someone says to follow suggestions by insights then I will say that I do and I managed to remove most of them - worst thing is that the score didn't move at all. This is the biggest struggle I have, it seems that whatever I do it wont be good enough...
I followed this guide https://kinsta.com/blog/google-pagespeed-insights/ + some of my own solutions.
Is there anyone that has any good tips or permanent solution for this issue?
Google Report
As evident from your Page Speed Insights report, the main factor responsible for your low score is images. The solution to this is using RESPONSIVE IMAGES, which will drastically improve the speed of your website on mobile. What it basically means is that, you'll have to keep different sizes of the same image available for the browser and browser will decide which version of the image is suited on a particular resolution.
1) Here's everything you need to know about Responsive Images --> Responsive Image (CSS Tricks)
2) You have to shift the <link href=".." .../> and <script> tags from top of the page to the bottom of the page, just after the <body> tag. This will fix the `Eliminate render blocking resources issue.
3) You can use Javascript Minifier to minify your JS. Just paste your existing JS code inside the Input Javascript box on the website and click MINIFY
Also, cache policy is also one of the factors, bringing your score down. An efficient Cache policy will make browsers, load your website faster, after the first load. Cache handling is server specific, its different for Apache, Express etc.

Super slow image loading on a friend's website [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
My friend hired a guy to build her company's website, but the developer has since stopped responding to her attempts to contact him. The site performance is pretty poor, especially because it's a graphic design company. The images should be the most prominent and accessible elements on the page, but they load horribly slowly.
I looked at the page source but I'm a total novice with webdev and this site was developed using WordPress, I think. I'm just trying to help out my friend, so I'm wondering if anyone has ideas why the images might be so slow to load and what I should look into as far as fixing them. Could it be as simple as image size or format? Or how they're loaded? Or where they're loaded from?
Any ideas are greatly appreciated. Here's the website URL: http://studiosaltdesigns.com/
There are more issues at play here than just large images loading slowly.
Testing load speed via http://tools.pingdom.com I can see there are over 10 .css files loading on the homepage and over 20 .js files (many of which aren't minified).
As the prvious answers suggest, you should think about optimising your images (reduce file size) but also try to minify and reduce the number of resources being loaded.
The way the site is built is it hides the images until they've loaded, with that being said your main first image is huge resolution of (3128x1505) the image should be a lot smaller around (1280x600) for full screen images and compressed greatly as that images size is 2mb when the most it should be is around 300-500kb. Hope that helps!
There are a few reasons for slow image loads.
Usually the most common I see are images are not optimized for the web. This meaning the picture resolution is more than 72. 72 being the web standard. Another reason may be very large images. Try to make the images smaller sizes and see what happens
I looked into the page source to try and get the image size. This site has many links and javascript links in the head of the page. Most of the time javascript links should be at the bottom of the body.
Look into optimizing the images. I use ImageOpt for mac. Here is the download link. It is free.
http://imageoptim.en.softonic.com/mac
Hope this helps.

UIWebView with buttons

before my question i would like to mention that i have been searching for this answer and you guys have led me to understand programming better in general considering the fact i just started learning and kind of struggling since i can't understand written tutorials. :(
Anywho. I am trying to have three buttons on my app each loading different URL's. I understand how to do this with a Tab Controller and honestly i understood how to use them by following one of the tutorials posted here. I came accross a very very strange problem in that and it was that in Tab Controllers, the SecondViewController would be unadjusted to the screen if i added the missing constraints. I couldn't figure out why so i thought to myself that it could be possible to load one URL in one UIWebView but still keep their state of where ever this person is on the page.
Could someone show me an example of how it is done? - Loading URL's via buttons to ONE UIWebView?
extra info: the web app is suppose to be a Show Portal for episodes, and the second button or one of the buttons will have a list of episodes by years, on which the user selects years and then months and then the list of episodes for that month are displayed.
I apologize if i broke a rule.
Thank you!!!

CSS and Page download speed

my site seems to be downloading very slowly. I recently changed the CSS and HTML to improve the layout, but I think I might have messed it up somehow.
Can anyone give me feedback on things I could do to speed it up?
Thanks.
www.aerlawgroup.com
There are many online Web Optimization sites that you can use.
I've attached some optimized results for your page.
From http://www.webpagetest.org/
See The Result
and you can use Google Page Speed Link
Simply, I would suggest one thing based on your page design and the code is..., use CSS Simplify Tool and the HTML Symplify Tool. It reduces the Page Loading time dramatically. and as well as some Image Compression Tool too.
One thing that really reduces the page speed is Flash contents or Images. so be focus on that primarily
http://csslint.net/ for linting
http://csscomb.com/ for ordering attributes
http://prefixr.com/ for adding browser prefixes
There are many many factors that come in play with a slow page besides CSS/HTML. The size of the images, whether they are optimized, how fast the server delivers, caching, etc...
I would recommend using Google PageSpeed Insights or similar service - they show you a lot of info.
Go to https://developers.google.com/speed/pagespeed/insights/
Edit: Your URL loads this JS file which has an anonymous function that runs again and again:
http://s3.amazonaws.com/scripts.hellobar.com/bfa7653204b92054d559e0d8dd1ba2dd6fbdc183.js
You can view for yourself by using a web inspector - I am in Safari 7 and under Timelines on the Inspector panel - select "Layout & Rendering" from leftside menu and reload page. You can see that the HelloBar is doing some kind of adjusting over and over.

Resources