Solve pagespeed problem for mobile theme

Posted in: Newspaper
Post count: 268

Hi,

I’m looking for the system to improve the google speed performance for
mobile theme that contrarily to desktop have a score about 72 instead of 93

problem are “remove javascript…”

…s/jquery/1.11.1/jquery.min.js?ver=1.11.1
…spaper/mobile/js/tagdiv_theme.js?ver=7.4

So I try to put within script parameter “defer” or “async” with a specific function
in newspaper/mobile/function.php

There does not seem to be having trouble viewing with mobile theme
but the you tube videos (and vimeo) are no longer reduced to the size
of the device used.

Any advice on how to solve the problem?

Thanks

Post count: 6535

Hi

Mobile theme loads the js in head by default but you can try to use the speed booster plugin to move it in footer. Please check our documentation for more details in this regard: https://forum.tagdiv.com/how-to-make-the-site-faster/

Thanks!

Post count: 268

Hi Andrei,

I have already done all…

Problem is only with mobile, not for desktop
and for single articles.

Actually if you see code, Js are on the footer also in mobile
but page speed show anyway the problem that I have link you above.

So, to find a solution, I thought to put parameter “defer” or “async”
on that javascript.

Doing so Page Speed does’t show more the problem on the mobile,
but the size of the youtube and vimeo videos are not match
those on the device…

Any solution to solve the problem on mobile score is welcome!

Thanks!

Post count: 6535

HI

I’ve checked your site and the resources pointed by google as render blocking are loaded in footer: http://screencast.com/t/T7hujSOxq
Google is very restrictive when it comes about mobile page speed and some things may be interpreted different then for desktop. The Speed Booster plugin does its job and moves those scripts at page’s bottom but it can’t change how google generate the reports. We know about this situation and indeed it’s very strange but we can’t do much about it. The theme and plugins control only page’s html, not google’s algorithm in page speed regard.

Thanks!

Post count: 268

Thanks Andrei

I know that there is a problem and that Google is very picky
I was simply looking for an alternative to solve the problem
because it is very important in optical seo

As I said, forcing the parameter “defer” or “async” only in

jquery.min.js? ver = 1.11.1
tagdiv_theme.js? ver = 7.4

with a specific function in the newspaper/mobile/function.php
the problem seems to be resolved

but using “defer” or “async” it seems that the video
Youtube and vimeo is no longer correct because they become more
wide of the device used

Do you have to suggest something for this?

Thanks!!

Post count: 268

Hi Andrei I made some experiment…

defer ‘jquery.min.js’ and ‘tagdiv_theme.js’

and async ‘front.js’ (the script for cookie notice)

it seem tha google no longer shows any error:
good score and mobile theme seems to work well

Try to give a look: may be a solution also for your developers?

Thanks

Post count: 6535

Hi

Thanks for your feed back, I’ve forward your suggestion to our developers and they will review it as soon as possible.
Thanks!

Post count: 436

Hey bintmusic

How you did this? Have you done it through Speedbooster plugin ? Can you also help the other community member to do the same on their websites?

Thank you.

Viewing 8 posts - 1 through 8 (of 8 total)
The forum ‘Newspaper’ is closed to new topics and replies.