I’m with you on that! I’m really not sure why tagdiv decided to fundamentally change the way that users interact with their browsers by adding that smooth scrolling javascript. I would think it would be ideal to remove it from the theme and let users who want such a feature to find a plugin and use that.
Just upgraded after a few months and went through my ritual of tweaking everything. Thought I would document this for anyone who wants to know.
I removed the smooth scrolling call from the following three files and that seemed to do it for me:
site.min.js
td_site.min.js
td_site.js
Doing a multi-file search reveals two other files that are calling the smooth scroll function, but this did it for me.
@Ecofame – That website gives me a headache – seems very crowded!
So, one aspect of “responsive” design (good and bad), is that it’s better to load a 25kb image once than load the 25kb image once and the 12kb image together and switch those out on viewport. Better to load the 25kb image ONCE, then resize to fit the aspect you’re looking at when you look at it.
I agree it’s best to load the image only once. All I’m saying (and is what I believe Google Pagespeed is saying) is that we should request the version of the image that is best fit to the screen at it’s current orientation, and then if the device changes the viewport, the image will be resized locally, which is essentially what newspaper does now at a certain level.
For example, if I load my homepage and resize the browser window down to 767 pixels, I see this image which is only 326px wide being displayed at over 700 px wide WITHOUT reloading the image, as seen in the screenshot below, second image down:
Does that make sense? If someone really was bothered by the pixelated images, they’d probably realize that they could simply re-orient their device to how they loaded the page or simply reload the page. It seems terribly inefficient to me to have every single person download a high-resolution image on the off-chance that they will flip from portrait to landscape while viewing the page…
The other benefit of using the larger image is for retina/HD displays on a mobile device which have higher pixel count than desktop; so again, if you do the pixel math, a 700×500 image on a screen with double the pixel count, loaded half size, would still provide the same number of pixels when shown half size — without having to load alternate retina/HD version of image or use “image stacks.”
I agree, it does look nice on “Retina” phone screens, which is why I disabled my retina plugin on mobile devices. I think it would simply be a better solution to have Newspaper serve a 300 px wide image, and then allow the retina plugin to substitute the @2x version, rather than serving everyone the hi-res image.
Doesn’t that seem more efficient?
This is actually one of the cool things about mod_pagespeed … if you have an image loading over and over at 80% size, it will cache the image at THAT SIZE and serve up the smaller image to people who keep requesting it vs loading the larger image and scaling it.
So let’s say an iPhone is requesting that 745 pixel wide image, with mod_pagespeed, it will know that the iPhone can only display a 640 px wide image and then serve it a new thumbnail?
That’s pretty cool if true. Thanks!
That was a great answer! It makes my 3GB SSD server with 2 cores look like a slowpoke.
I think Google thinks anything above a 70 score is pretty good, and they are just nitpicking when you get up in the 90’s. Sounds like you have a pretty intense job with that server – good luck!
@Christopher – What php are you running? I’m using suphp and it is incompatible with eaccelerator. Do you think that I would get much of an improvement if I switched to DSO? Liquidweb is willing to do this for me, and they said they could revert back if there’s any problems.
I’m wondering if you think I would gain much in terms of server response time, or if I should just leave well enough alone. My server response time is usually around 500 ms, which Google seems to not like…
I don’t think Google wants us to have awful image quality on our sites. I think they just want images to be as small as they can be at their current quality and sized correctly for the display device.
For example, the theme is serving 700 pixel wide images on smartphones where the viewport is 320 css pixels, which Google doesn’t like.
The other thing they don’t like is having wasted bytes in an image. I am compressing all of my images at JPEG quality 90 in pixelmator. I then run them through JPEGOptim, jpegtran, and jpegrescan at a quality of 90 and the file size drops by about half. Then I upload them and Google tells me they can still be a few KB smaller… I don’t care about that so much as I care about serving the wrong dimension of thumbnails to visitors.
I wish the theme made different thumbnails for iPad landscape, iPad portrait, and mobile phone so that we wouldn’t be serving oversized images, which Google hates, take a look at the image below:
When I had the retina plugin enabled for mobiles, it was trying to serve a 1490×966 image on the mobile phone. I had to disable that plugin for mobiles, because newspaper is delivering an image larger than a standard 2x retina image for all mobile phones regardless of whether or not they have the pixels to display the entire image.
I guess I’ll focus on the other things I can do something about, but I wish this would be addressed in a theme update if it’s possible with the bootstrap framework…
Sorry, I missed the Gravatar info that appeared before posting. I’m going to look into a way to get a local file instead of the “blank” gravatars from the external site.
Also, Shashank’s site is down to a 66 mobile/90 desktop for me on this page:
http://www.styzic.com/iphone-6-plus-blender-video/872/
It seems like Newspaper is getting hammered a lot more lately on Pagespeed for serving the 700px wide featured image to mobile phones… Any idea if we can get a custom thumbnail for mobile that’s only 300 px wide? I’m sure that would take a lot of work since the mobile site is anything from 240 px all the way up to 767 px…
I’ve got a few questions on Pagespeed that hopefully some of you can answer.
1 – I’m trying to figure out the best way to improve my server response time. It varies anywhere from 0.4 seconds to 0.8 seconds. I upgraded to a Liquidweb SSD VPS with 3 GB of RAM hoping that would take care of it, but it didn’t – it made it through a heavy day of 30,000+ pageviews, but I still can’t seem to get the response time down. I’ve disabled plugins, but to no avail.
2 – I’m running W3 Total Cache along with Tagdiv speedbooster, and I am still getting the render-blocking CSS and Javascript errors. I’m assuming I can edit the plugin file to get rid of these, correct?
3 – I have a pagespeed score of 61 on one of my posts and I believe it’s related to all of the calls to fetch Gravatars for comments. On a page with few comments, the pagespeed score increases. Here’s a screenshot:
Lots of comments (Pagespeed Link):
Few comments (Pagespeed Link):
I would think that the only difference here is all of the external calls to Gravatar. It seems like there has to be a better way to display 200 blank images rather than calling 200 separate URL’s to obtain the same image – Also, Google is complaining that they aren’t “compressed” enough…
Thanks for any help you can offer! I’m hoping to get up to at least upper 70’s or 80 on mobile. I have Adsense, Google Analytics, and Piwik Analytics going so I know that will prevent me from getting too high.
Thanks, Lucian. I had someone else from my webhost look at it since it was odd that it was working on my test site but not the main site.
Turns out that my URL was OralAnswers.com on WordPress but it was looking for oralanswers.com.
Since it’s case sensitive, changing everything to all lowercase solved the issue.
Thanks for your help!
I feel like I’ve got everything implemented now, just have to work on increase my pagespeed score from 60 on mobile :-/
Just in case anyone tries this, that 2nd copyright symbol should be the text ©, not the copyright symbol. I couldn’t figure out how to type it out in that code box on this forum without it turning into the copyright sign!
I just ended up using the caption field to credit the image author. I think it clutters up the layout of everything a little bit, but since I’m using photos from both iStockPhoto (which requires attribution next to the image) and Shutterstock (which only requires attribution in the article), I figured it was easiest to just go with a uniform way of doing it.
Some articles, like this one:
http://www.oralanswers.com/sinus-infection-tooth/
I decided to keep the attribution at the bottom since the caption would interrupt the flow of the article. However, all my featured images use the caption field to credit the author.
@sergenial – I’m pretty sure most stock photo licenses only require attribution for editorial uses. Use in a blog post is normally considered editorial use. As I understand it, use of the thumbnails on the front page would not be considered editorial use, as their purpose is to promote the article.
I hope that helps!
Thanks! I hope they respond as well…
Also, would changing the function in the get-admin-URL disable the “force admin over ssl option? Where would I change this (what files)?
Thanks. I like the second option better.
Can I get a confirmation from tagdiv that this won’t mess anything up with the theme?
Also, can we get this fixed in the next version? Having admin over SSL is a secure option that most people should be using especially if they use public wifi.
Thanks!
Thanks Shashank.
I just noticed that when I go to https://www.OralAnswers.com then AJAX works, but it doesnt work at the non-secure site.
I do have the WordPress option “Force SSL Admin” enabled in my wp-config file.
Do you know how to fix this? How do I add the Access Control Allow Origin header? Thanks!
I still can’t figure out this issue. The slide-out article does work, but the “Load More” buttons and the “live search” which use AJAX are not working…
I filed a support issue with my webhost and they looked into it and said that they are unable to pinpoint the problem and that this is not an issue with the server.
Please help – Thanks!!
Looking for a way to get rid of it, Thanks!
I think the smooth scrolling is great unless you’re on a Mac, since they have smooth scrolling by default, so it is really uncomfortable to use the theme on a Mac right now.
I think smooth scrolling is a big usability issue for my visitors who use a Mac, so I am removing it. I encourage TagDiv to remove it completely as well since I believe this is something the operating system should take care of.
Thanks, Lucian. My logo is 600x200px for retina desktop, 300x100px for regular desktop, and then you’re saying retina on mobile will be 288x96px? Non-retina on mobile should be 144x48px?
Thanks!
Hi Shashank – Changing your padding in the .css file from 3px to 5px solved it for me.
I would like to know this as well, please. Thanks!
I looked at an old version of the theme that I have on a demo site and it looked like the retina logo was showing at 340px wide on my iPhone 5.
When I made the retina mobile logo 340px wide in the theme panel, it looks too small now…
Got them all fixed! It was tricky since phpMyAdmin would not let me do a find and replace of finding the copyright symbol and replacing it with ©. Somewhere along the line, it converted my “©” back into it’s equivalent copyright sign. I’m assuming it did this since phpMyAdmin is web based…
To make a long story short, I simply clicked the SQL tab and took out the copyright symbol and replaced it with ©
Hopefully this will help someone in the future. Here’s the SQL command, just fill in the name of your database where indicated:
UPDATEdatabase_name.wp_postsSETpost_excerpt= REPLACE(post_excerpt, '©', '©') WHEREpost_excerptLIKE '%©%' COLLATE utf8mb4_bin
-
This reply was modified 11 years by
tcdraper.
Chronicles – To get it working again, did you go back to the previous release or are you using the current release? Thanks!
Thanks, Christopher. You’re always so helpful!
That worked, but I painstakingly added image credits for ~300 posts’ featured images. Hopefully I can do a find/replace via phpMyAdmin.
I’ll let you know how it goes.
Seems like there would be a way to fix this so that I could use the ASCII symbol, but oh well.



