Wordpress Website Lagging in Loading Speed

After migrating my Wordpress site from my computer to a Bluehost shared server, I noticed a significant decrease in loading speed. The home page now takes 107 seconds to load, while it ran smoothly on my local machine. Upon running a GTMetrix site analyzer with Bluehost tech support, they determined that the issue lies within the CSS of my theme. They assure me that there is no problem with the server.

I understand the necessity of cleaning up my CSS, but I never realized it could have such a drastic impact on load times. Could this really be the culprit?

Answer №1

After analyzing resource load times using Chrome's developer tools, it becomes evident that the main document is causing the delay rather than any other elements like CSS.

This suggests that the issue lies within your code itself. It seems that when running locally, everything was fine, pointing towards a possible connection problem with an external server, such as a database, leading to timeouts.

My recommendation is to thoroughly review all areas in your code where connections are made to external resources, paying special attention to the credentials being used. Ensure that your host has the necessary authorization to establish these connections compared to your local development setup. If connecting by IP address, confirm that those IPs can be accessed from your hosting environment.

Answer №2

Having trouble with the loading process.

http://ad.doubleclick.net/adi/N5192.395082.LOT18.COM/B5529584;sz=300x250;ord=[timestamp]?

Seems like it might be a script causing the issue?

It is taking 59 seconds to load for me, everything else is running smoothly.

Based on findings from Chrome dev tools (Network tab):

The recommended solution: disable any ads running.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

php code to display recent posts

Here's the current code snippet I'm using: <?php $query1 = "SELECT `tag` FROM `search` ORDER BY RAND() LIMIT 50"; $query1 = mysql_query($query1); while ($row1 = mysql_fetch_assoc($query1)){ $name1 = $row1['tag']; $link1 = s ...

adjust and align the input controls

Can you provide suggestions on how to align the 4 buttons vertically and resize them to be 50% in width and 20% in height relative to the browser's dimensions, while ensuring that the remaining 20% of height is evenly distributed between the buttons? ...

Expanding a grid cell beyond 100% can be achieved using a 1

I am working with a grid layout that I want to span exactly the height of the screen - no more, no less. The grid includes a fixed header (one), a fixed footer (three), and scrollable content (two). .grid-container { display: grid; grid-template-a ...

Searching in Mysql for the string with the highest number of matching initial characters

Can you help me with a challenge I'm facing in my MySQL query? Here are some sample "names" in my database: id=1, name="name1" id=2, name="name11" id=3, name="name111" I want to retrieve the id of the name in the database with the highest occurrence ...

Guide to stacking blocks on top of each other

How can I create even spacing between blocks of different heights? For instance, in the image below, you can see that block 2 should be positioned directly under block 1. https://i.stack.imgur.com/RnYbP.png https://i.stack.imgur.com/LHvlz.png ...

Struggling with Getting My Animation to Function Correctly

I am trying to create a JQuery Animation that will move a div covering a text box up into the border when clicked. Despite multiple attempts, I can't seem to get the animation to work properly. Any suggestions? JavaScript function moveup(title,text ...

Transferring JSON information from PHP to ASP.NET

I am currently managing two databases - MySQL and MS SQL Server 2008 on separate remote hosts. I need to transfer data from MySQL to MS SQL Server regularly, such as at midnight. Important Note: The host where MySQL is running only supports PHP, while the ...

Subquery within an SQL statement

Here is the format of my data: data1_qqq_no_abc_ccc data1_qqq_abc_ccc data2_qqq_no_abc_ccc data2_qqq_abc_ccc data3_qqq_no_abc_ccc data4_qqq_no_abc_ccc data4_qqq_abc_ccc ... Now, I am interested in extracting the fields where the data contains the substr ...

Changing the absolute layout to utilize floats

I am seeking guidance on a project I am currently working on and would greatly appreciate any help. Main Goal: The objective is to create a drag and drop CMS that allows users to draw elements on a grid and rearrange them as needed. The system will recor ...

Design all buttons, except for the two specific buttons

.button , button{ border:solid black 2px !important; } Using this code, I have added a border to all buttons. But now, I need to exclude the buttons "searchsubmit" and "single_add_to_cart_button" from having a border. How can I achieve that? ...

Unable to remove div element

Currently, I am working on writing a code for a webpage with specific functionalities. I need to display a button and an embedded YouTube video. When the user clicks on the video, they should be redirected to a different link (not YouTube) and the video sh ...

How to align a div in the center while another div is floated to the right?

Shown below is an example: <div id="mainContainer"> <div id="itemIWantToCenter"></div> <div id="itemIwantFloatedRight"></div> </div> The mainContainerwidth width is set to 100%. The itemIwantFloatedRight widt ...

Ways to create unique hover effects for images in a filter gallery

I recently downloaded a filter gallery from this link and while everything is working fine, I noticed that the hover effect remains the same for all images. The code snippet responsible for this hover effect looks like this: <div class="portfolio"> ...

To add a <figure> tag before and after the <img> tag using PHP, simply include the opening <

My goal is to surround the image tag with a figure tag at the beginning and end. This is my current approach. <?php $v['content_en'] = '<p><br /><img alt="" src="https://66.media.tumblr.com/9dc27741114bd854f29fc65dc33 ...

Having difficulties establishing a foreign key relationship in MySql

CREATE TABLE `TABLE1` ( `TABLE_ID1` varchar(4) NOT NULL, PRIMARY KEY (`TABLE_ID1`), ) ENGINE=MyISAM DEFAULT CHARSET=latin1; CREATE TABLE `TABLE2` ( `LOCAL_CUST_ID` int(10) NOT NULL, `TABLE_ID1` varchar(4) NOT NULL, ) ENGINE=InnoDB DEFAULT CHARSET= ...

Running SQL code in the MySQL terminal可以执行MySQL控制

It has been quite a while since I last worked with MySQL. Recently, I found myself needing to write some code blocks for a MySQL database. Specifically, I needed to insert records into a "visits" table, starting from 2015-01-14 up to the current date (2015 ...

An effective way to retrieve the URL of a page referrer and inject the content into a div is by utilizing jQuery's .load method

I am trying to set up a download page feature on my WordPress blog. I need to extract an HTML element with the id="download" from any URL that directed to the download page. Can someone help me with this task? I've included the code below, but unfort ...

Two lines of pictures (an odd amount of images)

I need help creating 2 rows of images with 5 images in total:      Image Image Image Image Image How can I center the first row properly? Currently, my layout looks like this: Image Image Image Imag ...

How to separate string by space in MYSQL

I have information that looks like this: Name ----------------- Ram Mohan Ram Lal Mohan Ram K Lal Mohan ... Currently, I am using: select SUBSTRING_INDEX(Name,' ',1) from contact to extract the first name select SUBSTRING_INDEX(Name,' &apo ...

Footer refuses to stay anchored at the bottom of the page

I'm struggling to keep my footer at the bottom of all pages on my blog. I am facing two main issues. If I use position:absolute, the footer ends up in the middle of the main blog page. Alternatively, when I don't use it, the footer sticks to the ...