Questions tagged [optimization]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
25
votes
7answers
39k views

Site loading speed is very slow

My client's Magento site page load speed is very slow. What can I do to decrease page load time? The site url is desibazaar.pk.
10
votes
4answers
16k views

Magento 2 How to do gzip compression and minify js, css files for optimization? [duplicate]

I have made some changes in .htaccess file present at root directory Default: <IfModule mod_deflate.c> ############################################ ## enable apache served files compression ## ...
9
votes
1answer
5k views

Magento 1.9: Product Price tables - how they work?

Magento has many tables for managing prices It looks to me that: in product/category pages the product prices are loaded from the catalog_product_flat tables. in search pages the _idx table are ...
8
votes
1answer
150 views

how to optimize load all categories with image

right now, I have two nested foreach to loop through all the category, and it's extremely slow (3-4s on my local server). I think the problem is i use ->LOAD() to get the image path for the child ...
6
votes
2answers
1k views

How to add the MAGE_INDEXER_THREADS_COUNT environment variable to env.php?

In Magento 2.2.6 you can take advantage of Multi-threading for the indexers as stated in release notes here: https://devdocs.magento.com/guides/v2.2/release-notes/ReleaseNotes2.2.6EE.html This ...
6
votes
2answers
3k views

Magento2 : Manage and understand images of deleted products behavior?

I'm trying to understand how M2 handle images of deleted products. If I delete a product (by admin or import/delete), all associated images in the media/catalog/product folder are still here. In M1 ...
6
votes
3answers
3k views

How to get a good Google Pagespeed mobile score for a Magento2 site?

We migrated a website from Drupal to Magento. After the migration the website's Google Pagespeed scores are much lower. With WordPress I can easily get to scores 99 for mobile and 100 for desktop. It'...
6
votes
1answer
1k views

Does magento2 use r.js optimization for require.js when deploying static files

I see that javascript contributes a lot to my magento2 page weight (1 mb). I wonder if it could be optimized with r.js when deploying static content or magento2 already uses an optimization tool. ...
5
votes
1answer
3k views

What is the best approach to call a static block in a template file and why?

There are two ways by which we can call a static block in a Magento phtml file; Method-1 <reference name="footer"> <block type="cms/block" name="my_identifier"> <action ...
4
votes
3answers
333 views

Magento 2: I am not aware about Magento optimization. Can you please share the steps for this?

I am not aware about Magento optimization. Can you please share the steps for this? How to compete with this? Thanks
4
votes
2answers
3k views

Reduce Number of Requests

I want to reduce the number of requests to optimize a Magento website. Merged JS and CSS files but it didnt work for me.
4
votes
3answers
2k views

What is faster - getting raw attribute value or use collection?

I need to load one attribute value(weight) for many product IDs. Say list of the product ids is in array $productIDs. In general case, which approach is faster, Loading raw attribute value for ...
4
votes
2answers
3k views

How to enable CSS Critical Path in Magento 2

How to enable CSS Critical Path in Magento 2.3.0 Reff: https://devdocs.magento.com/guides/v2.3/frontend-dev-guide/css-topics/css-critical-path.html When I try to enable, I'm getting the below error. ...
4
votes
1answer
210 views

“Optimizely” for Magento2

Can anyone guide me for installing Optimizely for Magento2? The client has installed it for Magento1 but can anyone tell it supports Magento2 as he wants Optimizely only(not any other similar one).
4
votes
1answer
1k views

Magento 2 - Routers_Match slow?

Im attempting to speed up a magento 2 store and have noticed within Profiler the step routers_match which takes over a 1.3s of the total time 1.7s. Is this supposed to take this long? When the page ...
3
votes
4answers
659 views

Queries on how to speed up Magento [closed]

How can I speed up Magento? Looked at lots of tweaks to speed up but still not fast. I have the following queries: Is it better to use nosql or is another database recommended? Is Apache better than ...
3
votes
3answers
2k views

Magento 2 : page speed optimization

Please provide me the suggestion regarding magento 2 store speed up? I already set the minified js and css from the admin panel. Also find too many request in the browser, how can we reduce server ...
3
votes
1answer
546 views

JS Merge vs JS Bundle which one is better for Google ranking

JS bundling saves page size in MBs but bundled js loaded synchronously. And the browser waits for js download completion. But in JS Merge Magento merges only those js which are required synchronously....
3
votes
2answers
2k views

Which Magento 2 directories can I exclude in PhpStorm?

I'm looking to try and speed up the indexing process in PhpStorm, so I'm looking to find out what directories can I safely ignore without compromising the code completion and hinting. The only source ...
3
votes
1answer
5k views

How to fix “Serve static content from a cookieless domain” to increase the speed of Magento site

I had completed my magento website called www.bookslab.in. I want to increase the speed of my website. I had checked my website speed on "tools.pingdom.com" it is coming "4.34s" page load time & ...
3
votes
1answer
126 views

Magento connect error

I have issue when install Image Optimizer plugins. http://connect20.magentocommerce.com/community/Tiny_Compresss_Images http://connect20.magentocommerce.com/community/Kraken_Image_Optimizer and i ...
3
votes
0answers
54 views

Defer merged css in Magento 2

I need to Defer merged css using JavaScript. Is there any possibilities to defer merged css. Example code i want to do. <noscript id="deferred-styles"> <link rel="...
3
votes
2answers
8k views

How do you minify merged css and js on Magento 1.9?

Magento standard can merge js and css. There is no standard functionality to minify this file afterwards. How can we do this?
2
votes
1answer
652 views

Image optimizer Magento1.9.3.2

I am using Apptrian Image Optimizer. The extension for Magento1. I have given all the necessary permission to the files which are responsible for optimizing. Still, I am getting the following error ...
2
votes
1answer
250 views

Possible issues after removing images of deleted products from media/catalog/product folder

From what I understood Magento2 deleting product behavior, associated images of the deleted product are not removing from media/catalog/product folder. I need to manage around 11.000 new products in ...
2
votes
1answer
466 views

Magento 2 , How to avaid load() in loop?

I have created the custom module with an inline edit in the grid, all working fine. once I have running phpsniffer with the EcgM2 standard, I get this warning: Model LSD method load() detected in ...
2
votes
3answers
108 views

how to optimization magento 2.2.1 site?

buddy: Recently i build a new magento 2.2.1 vesion site, but i feel it running very slow! I first contact the magento 2.0 vesion, so i have many things need to study. Now I want to know how to ...
2
votes
1answer
4k views

High load consuming mysql command

I have a magento on dedicated server but from the past few days the website is giving me hard times. The host provider says its because of Database & asks me to optimize the data. Which i have ...
2
votes
2answers
208 views

Time to first byte taking 800ms - put same array outside of magento is 90ms any ideas?

Alright, I normally don’t ask for help, but on this one I am a little baffled. I am working on a website where we do a ajax post, that goes through my Magento module’s IndexControler and sends back ...
2
votes
1answer
2k views

How do i remove unused css from magento 2 homepage?

I am not getting good performance when i audit my website with chroome lighthouse. I am getting few errors like - Remove unused CSS - Ensure Text Remain Visible during web front load - Minimize main ...
2
votes
0answers
123 views

How to edit source of the index page in Magento

I am a professional PHP developer, it's been like 2-3 days since I am trying to work with magento. My task is to optimize the index page. Thing is, I can not edit the "actual" source of index page. ...
2
votes
0answers
753 views

Async loading of javascript in Magento for PageSpeed

I'm trying to optimize my Magento 1.9.3 website, following Google PageSpeed hints, saying I have js and css that load synchrounously and block the page rendering. To solve this issue, I'm putting ...
2
votes
0answers
459 views

What `catalog_product_index_eav_idx` is used for?

I am trying to understand better the indexer process and see it I can find a way to optimize it. In particular, since it is the biggest table on my DB, I am focused on this table ...
2
votes
1answer
172 views

Opimal Magento server setup? [closed]

With Magento 2 being around for a bit now, some of you probably have experience with the optimal setup already. What would be the best server configuration for an optimised Magento store? Backend ...
2
votes
1answer
446 views

Magento DB Optimization

We run a pretty big Magento store. Some stats: 31 GB in DB size Over 700,000 orders Over 4,000,000 quotes Over 1,000,000 registered customers Over 25,000 products The store runs fine, but we've been ...
2
votes
1answer
101 views

magento 2 remove root lib/web/ js files from home page

Magento 2 sends around 300 request on home page so speed is very slow. Also, bundling create very large file so its taken time to load resources. I want to remove js from root lib/web from home page. ...
1
vote
5answers
4k views

Magento unable to add webp images to category thubmnail

I want to add webp images to category thumbnail, how can we do this, it gives below error on adding webp images "File validation failed."
1
vote
2answers
376 views

I need fastest product update [closed]

I am saving products fetched from an XML document. I am using $product->save() but I need to do an update after the first save. But the $product->save() method is too much slow for update. I ...
1
vote
3answers
3k views

Mod_Pagespeed? Configuration OK but report not

Here is my configurations; Here is my configuration for http://181.224.129.45/ ModPagespeed On ModPagespeedEnableFilters extend_cache ModPagespeedProgressiveJpegMinBytes 2048 ...
1
vote
2answers
153 views

Correct cache for Magento and settings

I'm optimizing the Magento store we have and would like to hear your opinion on the subject. I have installed mod-pagespeed and now I want to add some aditional cache. I've found a lot of information ...
1
vote
3answers
631 views

Magento goes first the HTTP then redirects to HTTPS

How can I make magento store go directly to HTTPS to save me 0.3-0.5 second of initial page load time going to HTTP then going back to HTTPS? I am completely lost here.
1
vote
1answer
755 views

Raw sql query vs Mage::getModel('catalog/product') vs?

I want to optimize simple ajax call which retrieves product information. Just getting product information will take 13MB of memory: require_once('app/Mage.php'); Mage::app('default'); $_product = ...
1
vote
1answer
399 views

What are some code optimization tips? [closed]

What do you guys suggest to modify in Magento core to speed it up, without breaking anything? Like disabling modules via xml files or modifying checkout to remove observers.
1
vote
2answers
311 views

Merge JS/CSS files

I'm trying to compress the code files on my magento 2 store. And so we wanted to use the Merge JS/CSS files in the magento 2 admin. We are not programmers, and we would like to not have to contact ...
1
vote
1answer
1k views

Advanced js bundling

I try to optimize the bundles of magento with the information from devdocs . I try to do it on Magento 2.2.6 but the main issue is that after generating the bundles I get an error from the customer-...
1
vote
1answer
1k views

Magento 2 : Image scaling Magento

Is there any way to serve scaled images? Specially, when images are already uploaded like product images or some CMS page images. I'm not looking for some solution that will scale images one-by-one. ...
1
vote
1answer
654 views

product listing load more time in category page

In website 150k products,I have installed varnish cache but when initial load category page it takes 10 second to load time and display 36 products in category page and I do not want to change 36 to ...
1
vote
2answers
2k views

optimization view: magento scales down images to the proper size, what if we have large images,can it hurt the website?

Suppose that our thumbnail image is 1000x1000 pixel although it should be 133x100 pixel, magento automatically will re-size it and show the re-sized image on the page, I know that it can slow down the ...
1
vote
2answers
148 views

What are the performance implications when loading collections in different ways?

Given two ways to loading a category collection: $children = Mage::getModel('catalog/category')->getCollection(); $children->addAttributeToSelect('name') ->addAttributeToFilter('...
1
vote
1answer
12 views

Code optimization, adaptation to a large number of conditions

I need to make a condition, if the server code has a certain value, then it will set the appropriate currency. I did this via an if else condition. But if there are many 5+ conditions, it will look ...