Search Results for 'optimize'

Results from the Forum
Sayeed
Participant
#0

Hi…

I having the issue of site loading speed just after changing my theme to Newspaper.. with my old theme the load time was less than 2 seconds.

Currently it’s more than 6seconds which is too much for a site like mine. I have deleted most of my plugins and i tried W3 total cache as well… their is no difference in the speed.

I have followed the guidlines from the doc. but seems like nothing is helping… You might say that the images are not optimized… With my old theme i had more large size that i have now i compressed all my images as well but that didn’t help me.

I contacted my hosting provider and asked them weather they have some issue… they told me that from their end everything is fine… It’s theme new theme which is causing problem.

I would like to give me a quick solution on this so that i can resume my work. my website URL is http://www.magscroll.com

We are new startup and we changed our theme from the old to newspaper because we saw that technorati is using it.

Please help us solve the issue… it’s really urgent and important for us.

Thanks

deborahsmith
Participant
#0

Hi guys.
When my site (www.thestudentmovers.com) loads, it has the site map first, before everything else catches up. Any way to fix that? I have already optimized all the images and deleted all possible plugins.
Thanks,
Deborah

See screenshot: Screenshot of issue

Emil G
tagDiv Staff

Hi,

The code has been tested and optimized, there’s no better alternative to it. You could try to enable the Object Cache in W3 Total Cache plugin and see if it improves anything. Also disable the 7 Days Counter if you don’t use it. Try to optimize the rest, check the guide i’ve provided on my previous message.

Let me know how it works.

Thank you, Emil G.

gossiponthis
tagDiv Member

This is what my host sent me:

Your server’s issue is that there are some very inefficient SELECT queries and was exacerbated by a crashed table. The crashed tables have now been repaired and fragmented tables have been optimized but the inefficient queries need to be addressed.

Regarding the SELECT statement on wp_posts, the query being run (see below) involves the tmp table. This is a very ‘expensive’ query, cause it involves writing the data to a location on disk, which is I/O intensive and imposes a high load on the server. Unfortunately, these queries could be related to wordpress stats/metrics/data collection/plugin/themes. The quick and dirty fix is to put the tmp tables in RAM for cases where there’s excess ram on the server, which your server unfortunately does not. Identifying the plugin/theme/etc that’s causing the proper way to go.

Copying to tmp table |
SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts INNER JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) WHERE 1=1 AND wp_posts.post_type = ‘post’ AND ((wp_posts.post_status = ‘publish’)) AND ( wp_postmeta.meta_key = ‘post_views_count_7_day_total’ ) GROUP BY wp_posts.ID ORDER BY wp_postmeta.meta_value+0 DESC LIMIT 0, 5

The bolded portion is where the problem lies, which looks like it’s coming from the view counter. Is there a better way to optimize the code or should I just disable that portion of the theme altogether? I particularly enjoy showing articles that are trending so I’m hoping someone has a solution other than turning it off.

euzebius
Participant
#0

Does the Newspaper theme support code minification (compression of HTML/CSS/JS/JQUERY… code)plug-in called Autoptimize ? We have too many CSS / JS in our theme and it looks like it still need to be optimized (see : iphonologie.fr).
Thanks for your answer

simchris
tagDiv Member

@nelito
I never said anyone was wrong for complaining.

We didn’t need to modify anything on the server to use the theme.

Normal server optimization of WordPress is theme agnostic. TIME magazine had to optimize their severs for WordPress, regardless of the theme they are using.


@deanhankin

VC’s so called “limitation” only surfaced with the most recent version. After almost 2 years of use by TagDiv with tens of thousands of happy users, I would venture it wasn’t a bad choice for a visual platform. The visual editing is the main reason many folks bought the theme — without a plugin like visual composer along with all its prebuilt and custom modules there is no other simple way to do this kind of layout.

That being said, we here are playing with a “lean framework” again, and testing stuff like this: https://wordpress.org/plugins/siteorigin-panels/

For some of our sites, we are looking into “lean layout” again vs “complex layout” where high demand news site doesn’t need a fancy “magazine” layout where the look/feel is a factor in audience hanging about and returning. For example, one of our oooold sites, running Canvas: CaliforniaNewswire.com — not as pretty as FloridaNewswire.com, but very lean by comparison, and not really optimized at all.

As to arrogance… it’s up to you to research and learn the tools of the trade. Hopefully you’re learning from all of this 🙂

In any case, I will shut up now. I am not “defending” the theme (or VC) against your issues, I am simply saying that not everyone has the issues you may have had. For some it’s a one click install process and a site can be completely switched over in a few hours. That’s pretty powerful for a $50 investment.

Things change with all WP materials. WooCommerce updates, breaks stuff. Waaaah! Not the theme’s fault. Revolution Slider has security vulnerability. Waaaaaaah! Not the theme’s fault. WP 4.1 breaks plugins. Waaaaah! Not the theme’s fault. People expect a hell of a lot for $50 these days.

Cheers.

  • This reply was modified 11 years by simchris.
  • This reply was modified 11 years by simchris.
  • This reply was modified 11 years by simchris.
Emil G
tagDiv Staff

Hi,

What tool did you used for this test? The theme is optimized for SEO, i recommend that you install WordPress SEO by Yoast plugin for better results.

Thank you, Emil G.

Emil G
tagDiv Staff

Hi,

I see you didn’t optimized the site – http://screencast.com/t/qY1CL39D
Follow this guide – https://forum.tagdiv.com/newspaper-documentation/
You can also check this – https://forum.tagdiv.com/topic/tutorial-pagespeed-2015/
Try to reduce the number of blocks on page, reduce the number of elements which come with ajax pagination (mega menus, ajax pagination, load more, infinite load – blocks)
Disable the view counter (it updates the database counter on each page view).
Try to reduce the number of plugins, use only the really important ones.

Hope this helps.

Thank you, Emil G.

Emil G
tagDiv Staff

Hi,

What version of Visual Composer do you use? There are some memory issues with the latest version, try to install version 4.3.5, then optimize the site – https://forum.tagdiv.com/how-to-make-the-site-faster/ (especially the gzip compression, images, cache and browser leverage).
Reduce the number of ajax using elements on page (mega menus, ajax pagination/load more/infinite load). Also reduce the number of blocks on your main page.

If nothing works please send an email at contact@tagdiv.com and provide more details.

Thank you, Emil G.

  • This reply was modified 11 years by Emil G.
Rabattix
tagDiv Member

Hello,

first of all, it´s a great theme, but after installing all we need, and following your constructions for more pagespeed, nothing happens.

Lots of them is because of the pictures bus there are more ponts in loading js and css.

Now we followed your instruction to optimize the pagespeed by putting the files in to the footer, but nothing happens.

When we check the site withe the functions.php of the theme, there is also this:

registered scripts
td-external | http://our-domain.tld/wp-content/themes/Newspaper/js/td_external.js
td-site-min | http://our-domain.tld/wp-content/themes/Newspaper/js/min/site.min.js
jquery | http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js
registered styles
cptch_stylesheet |
cntctfrm_stylesheet |
google-font-rest |
td-bootstrap |
td-theme |
js_composer_front |

Then we put them to the footer, but this message is also available. What did we do wrong?

The td-speed-booster.php looks like this:

if ($this->is_ie === false and $this->td_theme_name == ‘Newspaper’) {
$this->move_style_to_footer(‘td-bootstrap’);
$this->move_style_to_footer(‘td-theme’); //this is the main style of the theme, it depends on td-bootstrap to load
}

$this->move_style_to_footer(‘google-font-rest’);
$this->move_style_to_footer(‘woocommerce_frontend_styles’);
$this->move_style_to_footer(‘cptch_stylesheet’);
$this->move_style_to_footer(‘cntctfrm_stylesheet’);
$this->move_style_to_footer(‘google-font-rest’);
$this->move_style_to_footer(‘td-bootstrap’);
$this->move_style_to_footer(‘td-theme’);
$this->move_style_to_footer(‘js_composer_front’);

//jetpack lost styles
$this->move_style_to_footer(‘jetpack-subscriptions’);
$this->move_style_to_footer(‘jetpack-widgets’);

/**
* move javascript to footer
*/
$this->move_js_to_footer(‘themepunchtools’);
$this->move_js_to_footer(‘revmin’);
$this->move_js_to_footer(‘jquery’);
$this->move_js_to_footer(‘td-external’);
$this->move_js_to_footer(‘td-site-min’);

Can you help us please?

Thanks

juyeak
tagDiv Member

But server not slower, images optimized, front page not have many queries.. )

  • This reply was modified 11 years by juyeak.
simchris
tagDiv Member

You need to switch off all plugins, except Visual Composer, which is needed by theme. Then clear all your caches. Then turn on plugins one by one (e.g., Yoast SEO fairly safe, WP-optimize safe), until you find the “bad one.”

simchris
tagDiv Member

Takes a second to load CSS on slower server or if having too many queries on front page, or images not optimized for fast loading.

simchris
tagDiv Member

Have you optimized your site for PageSpeed rating?
Have you limited number of queries per post page?
Have you increased the default RAM assigned to php?

simchris
tagDiv Member

Checkout my new post, which condenses a lot of my suggestions from the oooooold sticky topic started a year ago in the Newspaper forum. 🙂

Might be some stuff there to help.

And, of course, be sure to CLEAR the mod_pagespeed cache once you change settings just to house clean. You don’t need to do that all the time, just good idea if you’re monkeying with bunches of other stuff.

I actually turn if OFF via htaccess

ModPagespeed off

when messing with ALL the other stuff, so it’s not trying to cache the other shenanigans.

Also remember that you need to hit the page a few times for PageSpeed to really optimize stuff.

salocharly
tagDiv Member

Thanks I will go over that, something interesting that happen for them record

I turned off BWM
I turned off Several options of speed buster
I turned off strings

all that in the newspaper theme, and activated speed booster with your code.

as a result I got 69/91. Witch really satisfy me.

did the same with newsmag (in my other site) and I get 63/83 witch is not bad but was doing better without mod_pagespeed.

I am getting a ton of error in the mobile version
Remove render-blocking JavaScript:
Optimize CSS Delivery
ptimize the following images to reduce their size by 115.2KiB (43% reduction).

also images are not optimized, is wird also becuase bith instalation are in the same vps…..

good news is that mobile is working now but grades are not so hot….

I tryed truning all off but is pretty much the same.

simchris
tagDiv Member

*PLEASE TO NOT POST QUESTIONS HERE, AS I WON’T ANSWER*
*ADMIN: make a sticky and lock from posts if you wish*

All of the above is from a forthcoming ebook I’m writing on how to optimize WordPress for speed, SEO, and raise visibility online.

DO NOT REPOST THE ABOVE, as I’ll be very unhappy with you.
The ‘left shark’ will hunt you down (kidding) 😉

Hope that all helps somebody.

My karmic debt is hereby paid for the month!

simchris
tagDiv Member

Customization/minification to wp-config.php file to optimize for fewer dbase calls.

a) remove all the excess comments

e.g., stuff like this does NOT need to be in file; which are “comments”


 *
 * This file has the following configurations: MySQL settings, Table Prefix,
 * Secret Keys, WordPress Language, and ABSPATH. You can find more information by
 * visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
 * wp-config.php} Codex page. You can get the MySQL settings from your web host.
 *
 * This file is used by the wp-config.php creation script during the
 * installation. You don't have to use the web site, you can just copy this file
 * to "wp-config.php" and fill in the values.
 *

// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
/** MySQL database password */
/** The Database Collate type. Dont change this if in doubt. */

/**
 * WordPress Database Table prefix.
 *
 * You can have multiple installations in one database if you give each a unique
 * prefix. Only numbers, letters, and underscores please!
 */

/* Thats all, stop editing! Happy blogging. */

Add the following at bottom and put in your actual site URL

define('WP_HOME', 'http://site.com');
define('WP_SITEURL', 'http://site.com');

if your site runs as https, be sure to use https!

** ADVANCED USERS ONLY ON FINAL SITE DEPLOY **
For additional optimization, you can add the following:
(final line changes default folder from ‘uploads’ to something else; such as images; in my case ‘meta’)

define('TEMPLATEPATH', '/var/www/vhosts/site.com/httpdocs/guru/wp-content/themes/Newsmag');
define('STYLESHEETPATH', '/var/www/vhosts/site.com/httpdocs/guru/wp-content/themes/Newsmag');
define(UPLOADS, 'meta');

  • This reply was modified 11 years by simchris.
  • This reply was modified 11 years by simchris.
simchris
tagDiv Member

Doesn’t break my setup, here: (both running mod_pagespeed on our server)
ga-ga.com
floridanewswire.com

which device are you seeing the problem on?

Have you optimized your settings for mod_pagespeed specific to WordPress, such as adding the right items to your htaccess file?

Emil G
tagDiv Staff

Hi,

You shouldn’t add the last -css, just “jetpack_css”.
Try to optimize by enabling the default plugins, enable the rest one by one and look for the js/css classes.
The Pagespeed test also penalizes your score if you have too many plugins.

Thank you, Emil G.

nbcoffice
Participant
#0

Hi,

I have problems in images optimizing & need your help to take a look.

Test site: http://developers.google.com/speed/pagespeed/insights/?url=http%3A%2F%2Fwww.ssm-company.com%2F&tab=desktop

Score = 82 (without cloudflare & W3)

Live site: http://developers.google.com/speed/pagespeed/insights/?url=http%3A%2F%2Fwww.nbc.com.my%2Fblog&tab=desktop

Socre = 62 (with cloudflare-pro plan & w3)

Both sites using plugin EWWW Image Optimizer.

Thanks in advance!

Lucian
tagDiv Staff

Hi,

If the script/stylesheets are already moved if don’t appear on desktop so for mobiles the test should be more rigorous that is why this notifications appear.
The js and css files are already moved to the footer so you don;t need to do it again.
I’m not sure what you could try to get rid of those errors, I suggest you try the recommendations from google insights:

* https://developers.google.com/speed/docs/insights/BlockingJS
* https://developers.google.com/speed/docs/insights/OptimizeCSSDelivery

You can also try to find solutions for this online or search for other ways to remove the “render-blocking JavaScript and CSS” for mobiles.

Thanks

gouravgola
Participant
#0

Hello, this was my previous question regarding website speed :
https://forum.tagdiv.com/topic/how-to-do-further-website-optimization/

I followed all of your instructions, my speed test was improved on mobile and desktop.
but yesterday when i changed template layout on my site, google speed test dropped again:
https://developers.google.com/speed/pagespeed/insights/?url=http%3A%2F%2Fwww.unbelievable-facts.com%2F&tab=mobile

On desktop it is good 91 out of 100
and there is only 1 render blocking css which you told me it can not be moved.
http://www.unbelievable-facts.com/…content/themes/Newsmag/style.css?ver=1.5

But on mobile there are some more scripts and css files showing on speed test, it wasn’t there before making changes in template:

Remove render-blocking JavaScript:
http://ajax.googleapis.com/…s/jquery/1.11.1/jquery.min.js?ver=1.11.1
http://www.unbelievable-facts.com/…alite/Socialite/socialite.min.js?ver=2.0
http://www.unbelievable-facts.com/…ugins/wpsocialite/wpsocialite.js?ver=1.0
http://www.unbelievable-facts.com/…ensions/socialite.stumbleupon.js?ver=1.0
http://www.unbelievable-facts.com/…jquery.form.min.js?ver=3.51.0-2014.06.20
http://www.unbelievable-facts.com/…ct-form-7/includes/js/scripts.js?ver=4.1
http://www.unbelievable-facts.com/…themes/Newsmag/js/td_site.min.js?ver=1.5
http://www.unbelievable-facts.com/…includes/js/comment-reply.min.js?ver=4.1
Optimize CSS Delivery of the following:
http://www.unbelievable-facts.com/…content/themes/Newsmag/style.css?ver=1.5
http://www.unbelievable-facts.com/…poser/assets/css/js_composer.css?ver=1.5
http://www.unbelievable-facts.com/…t-form-7/includes/css/styles.css?ver=1.5
http://fonts.googleapis.com/…,600italic,700italic,400,700,600?ver=1.5
http://www.unbelievable-facts.com/…p-includes/css/dashicons.min.css?ver=1.5
http://www.unbelievable-facts.com/…p-includes/css/admin-bar.min.css?ver=1.5
http://www.unbelievable-facts.com/…/wpsocialite/lib/wpsocialite.css?ver=1.5
http://www.unbelievable-facts.com/…p-subscribe/css/wp-subscribe.css?ver=4.1

and these scrips and css don’t seems to have a ‘file id’so i can not move them using speed booster plugin.
please guide me further!

simchris
tagDiv Member

Hi everyone
On the topic of “PageSpeed,” I have already answered the same questions 50-100 times the past year and they are all covered in the “sticky” thread found in the Newspaper forum.

I am no longer providing any help with PageSpeed issues, as this is all covered in the sticky topic for advanced users; and for newbies, the settings/docs provided by TagDiv for the theme docs (link right side of page) will get you to the 80+ stage right away. If your score is below that then you *did not* follow the theme docs or this topic on the basics for speeding up your WORDPRESS install.

WordPress optimization is widely covered on the net – it’s not theme specific.

You need to have
a) fast hosting; $3/month accounts or “free” hosting are crap.
b) have gzip/deflate running on server
c) you need to set expiration headers in your htaccess (noted in docs)
d) you need to have an image optimization strategy (noted in docs); either via plugin and/or changing optimization setting in functions.php (covered in the sticky topic.. why not READ through it??)
e) you need to optimize your dbase regularly (wp-optimize plugin)
f) you need to limit use of things which call CSS, JS, fonts, ads, counters from OTHER SITES.
g) you need to test/explore refine some kind of caching system on the server or from a WP plugin (noted in docs)
h) high quality hosting will add mod_pagespeed
i) you need to look at manual minification of main style.css file
j) limit number of ad networks
k) limit number of plugins wherever possible
j) limit total number of images/thumbs loaded on post pages to something like 10 total; not 30+
k) use fewer module types to limit number of image sizes/thumbs; use text modules also.

When testing site with something like GTMetrix.com *READ* the information provided with examples and solutions. Only YOU can fix your own website, why ignore the info provided as so many on this forum(s) seem to do?

Advanced users:
a) local caching/loading of gravatars (I provide solution in the sticky thread)
b) mod_pagspeeed and mod_spdy if site loading via https (I offer help on that in the sticky thread and other discussion on mod_pagespeed; search forum)
c) optimization of font loading, hack theme to remove calls from headers/footers to Google and load via style.css; -or- use ONLY web-safe fonts and no Google fonts. (I also describe how to do this in sticky thread; although might need update based on current location of font calls with theme evolution/updates)
d) manual minification of other files, such as main theme functions files
e) optimization of wp-config.php file with comment removal, add paths to base URL/directory and theme directory by name (I show example in sticky thread)
f) add expiration type/ttl for custom icon font loaded by theme (betcha forgot that one!)

etc.

Learning to optimize your WordPress site is UP TO YOU TO LEARN. It’s not part of the theme. The theme supports very good speed rating IF YOU DO THE REST. The theme cannot fix your server, optimize your htaccess file, speed up time, or transport you off this rock. Google is a great resource to FIND hundreds of articles from the past decade on optimizing WordPress. You’re not the first person to do it.

Chris out.

(I am adding this here, as many don’t look at the sticky thread and/or folks in the Newsmag forum never saw that. Even so, most posting “my score is 40” clearly did NOT follow the basics found in theme docs.)

#1 TIP: don’t worry about render blocking elements until EVERYTHING ELSE is done. Those last items really only impact your last couple of points. I have 95 score with Newsmag without full optimization of the fonts or minification. It’s doable!

simchris
tagDiv Member

Hi everyone
I have already answered the same questions 50 times the past year and they are all covered in this thread.

I am no longer providing any help with PageSpeed issues, as this is all covered in this sticky topic for advanced users, and for newbies, the settings/docs provided by TagDiv for the theme docs (link right side of page) will get you to the 80+ stage right away. If your score is below that then you *did not* follow the theme docs or this topic on the basics for speeding up your WORDPRESS install.

WordPress optimization is widely covered on the net – it’s not theme specific.

You need to have
a) fast hosting; $3/month accounts or “free” hosting are crap.
b) have gzip/deflate running on server
c) you need to set expiration headers in your htaccess (noted in docs)
d) you need to have an image optimization strategy (noted in docs); either via plugin and/or changing optimization setting in functions.php (covered in this sticky topic.. why not READ through it??)
e) you need to optimize your dbase regularly (wp-optimize plugin)
f) you need to limit use of things which call CSS, JS, fonts, ads, counters from OTHER SITES.
g) you need to test/explore refine some kind of caching system on the server or from a WP plugin (noted in docs)
h) high quality hosting will add mod_pagespeed
i) you need to look at manual minification of main style.css file
j) limit number of ad networks
k) limit number of plugins wherever possible
j) limit total number of images/thumbs loaded on post pages to something like 10 total; not 30+
k) use fewer module types to limit number of image sizes/thumbs; use text modules also.

Advanced users:
a) local caching/loading of gravatars
b) mod_pagspeeed and mod_spdy if site loading via https
c) optimization of font loading, hack theme to remove calls from headers/footers to Google and load via style.css; -or- use ONLY web-safe fonts and no Google fonts.
d) manual minification of other files, such as main theme functions files
e) optimization of wp-config.php file with comment removal, add paths to base URL/directory and theme directory by name
f) add expiration type/ttl for custom icon font loaded by theme

etc.

Learning to optimize your WordPress site is UP TO YOU TO LEARN. It’s not part of the theme. The theme supports very good speed rating IF YOU DO THE REST. The theme cannot fix your server, optimize your htaccess file, speed up time, or transport you off this rock. Google is a great resource to FIND hundreds of articles from the past decade on optimizing WordPress. You’re not the first person to do it.

Chris out.

Viewing 25 results - 4,101 through 4,125 (of 4,409 total)