-
Recent Posts
Recent Comments
Archives
- September 2019
- August 2019
- July 2019
- June 2019
- May 2019
- April 2019
- March 2019
- February 2019
- January 2019
- December 2018
- November 2018
- October 2018
- September 2018
- August 2018
- July 2018
- June 2018
- May 2018
- April 2018
- March 2018
- February 2018
- January 2018
- December 2017
- November 2017
- October 2017
- September 2017
- August 2017
- July 2017
- June 2017
- May 2017
- April 2017
- March 2017
- February 2017
- January 2017
- December 2016
- November 2016
- October 2016
- September 2016
- August 2016
- July 2016
- June 2016
- May 2016
- April 2016
- March 2016
- February 2016
- January 2016
- December 2015
- November 2015
- October 2015
- September 2015
- August 2015
- July 2015
- June 2015
- May 2015
- April 2015
- March 2015
- February 2015
- January 2015
- December 2014
- November 2014
- October 2014
- September 2014
- August 2014
- July 2014
- June 2014
- May 2014
- April 2014
- March 2014
- February 2014
- January 2014
- December 2013
- November 2013
- October 2013
- September 2013
- August 2013
- July 2013
- June 2013
- May 2013
- April 2013
- March 2013
- February 2013
- January 2013
- December 2012
- November 2012
- October 2012
- September 2012
- August 2012
- July 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- March 2011
- November 2010
Categories
Meta
Tag Archives: user
7 Ways to Improve Your Site Speed in WordPress
The post 7 Ways to Improve Your Site Speed in WordPress appeared first on HostGator Blog . For the past several years, Google has been emphasizing site speed as a ranking factor in their algorithms. Given that, it’s amazing to see the number of under-optimized WordPress sites that exist. People spend so much time on “SEO” and content generation, and they forget to do the one thing that will increase the ranking of all their pages. Well, it’s never too late to get started. Here are seven ways to improve your site speed in WordPress. These will make Google sit up and take notice! These are listed in order of importance. Method 1: Use a Datacenter Closest to Your Clients The location of your server plays a big role in your site speed. For example, if your clients are based in the US, then HostGator is an ideal web host, since we have two data centers in the country – one in Texas, and one in Utah. You can view the speed with which your site is fetched by the Googlebot in your search console. Ideally, this should be just a few hundred milliseconds. When I switched my server to a local host, you can see how fast my site fetch speed went down: So don’t ignore this aspect of site speed. It’s crucial! Method 2: Implement Dynamic Caching WordPress generates its pages afresh each time a visitor comes to your site. This is quite a costly process and puts a strain on your database as well as your CPU. In addition, page generation takes time, so there’s a small delay for each visitor. The solution to this is dynamic caching. What is Dynamic Caching? The idea behind dynamic caching is to save a copy of the generated page and serve that copy to the next visitor. This way, each page is generated just once instead of over and over again. Not only is this faster, it reduces the resource load on your server, which means other parts of your site will work faster. It also means that your site can handle many, many more visitors! How to Implement Dynamic Caching on HostGator Dynamic caching can be implemented either with a 3rd party plugin or on the server. Having it enabled on the server is much faster. Not many web hosts allow this, but HostGator offers server caching on their WordPress plans as shown here on the product page: So if you use managed WordPress hosting with HostGator, just turn on the feature and you’re good to go! Here’s a complete review of HostGator WordPress , including all the special features! But even if you don’t have WordPress optimized hosting, you can implement dynamic caching with a plugin. I personally recommend WP Super Cache, which is an extremely popular WordPress plugin, is easy to use, and will get the job done without hassles. Method 3: Use a CDN A CDN is a “Content Distribution Network”. Apart from dynamic pages, there are lots of things on your site that never change. Images, Javascript, and CSS. Well… almost never change. Because of this, it’s best to deliver these resources from a server closest to your client. A CDN looks at the IP address of your visitor and chooses to send static content from a server closest to that location. Which means that people on opposite ends of the earth will receive the content equally fast. It’s really quite a magical technology. As before if you have WordPress hosting with HostGator, a CDN is available by default. But even without such a plan, you can use Cloudflare as your CDN. Despite it being free, I think Cloudflare is one of the best CDNs on the market. HostGator has a tie-up with Cloudflare, which allows for easy integration. You can even do cool stuff like changing your nameservers for faster access. But that’s beyond the scope of this tutorial. Method 4: Deferring or Asyncing JavaScript This one can be a bit tricky. Almost all websites use JavaScript. It’s an essential part of the web, but this adds to the page load time. The key is to wait until the page has fully loaded and is visible before loading JavaScript. It’s easier said than done, and each website works differently. Which is why we need a plugin. The one I recommend is Autoptimize . It’s open source and is almost universally recommended by WordPress gurus. After downloading and installing the plugin on WordPress, you can click the button to aggregate and asynchronously load JavaScript as shown here: The plugin has many options. Make sure to test them all so that your website’s features work properly. Stuff like resizing tables etc are all enabled by Javascript. Method 5: Inlining and Deferring CSS The CSS counterpart to method 4, this refers to delaying the loading of CSS files until the page has downloaded and displayed. However, there’s a catch. If we delay the loading of CSS, our page will look horrible and unstyled, since the CSS files are missing! The solution is called “Inlining” above-the-fold CSS. What this means is that you need to isolate the CSS rules that apply to all visible elements when your page first loads. And then paste those rules directly into every page so that they’re loaded instantly. Once your page has rendered, you can then load the CSS files at your leisure. So how do we do this? Get the Critical CSS This is pretty hard to do manually. So we’re lucky that automatic online tools exist to do it for us! For example, here’s an online tool from SiteLocity that’s quite popular. Simply type in your URL, and it’ll generate the critical above-the-fold CSS for you. Copy the rules that it gives you and use it in the next step. Insert the CSS Inline In method 4, we used the tool “Autoptimize”. Just like before, there is a section in the main settings area to enter your critical CSS as shown here: As shown above, paste the CSS into the box and save your changes. Now when you load your page, all the important CSS will be downloaded immediately, but the external files will be served later when the page has fully loaded. This makes your site blazing fast! Method 6: Lazy Load your Images Images constitute the bulk of a web page’s size. And not surprising, since a single image can be hundreds of MB. So it’s important to only load those images when necessary. “Lazy Loading” is the practice of downloading images only when the user has scrolled far enough to view them. Otherwise, if you have an image way down the article, and the user leaves the page before that, it’s wasted bandwidth both for you as well as the visitor. And it means your site slowed down unnecessarily. Lazy loading is yet another feature that’s difficult to implement manually. Luckily for us, WordPress themselves have released a plugin called Jetpack . I highly recommend using it, since it has a ton of useful features that you can play around with, and lazy loading of images is one of them as shown here: It’s just a single setting! Enable it and you’re done. Now when you visit your page, the images won’t be downloaded until you’re far enough down to see them. In which case, they’ll appear by magic as your user scrolls. Neat right? Method 7: Removing Unnecessary Emoji Code I didn’t notice this myself until I combed through my HTML code. WordPress adds a whole lot of junk useless emoji code to every page in order to render smiley faces and emojis. It’s a useful feature, but it’s a lot of wasted code, and it’s loaded every single time. Luckily, the Autoptimize plugin that we saw earlier has a way to remove them in the “Extra” tab as shown here: Click this option, save your changes, and you’re done! No more emoji code. The idea is to keep your WordPress installation neat and clean, without any unnecessary junk. These seven methods outlined here are a mix of server level and page level optimizations. Together, they should put your site on a fast track to higher rankings, and better experiences for your visitors. Find the post on the HostGator Blog Continue reading
phpBB board logging out users in external pages
Hi – After yet another migration of a well-known host here, this time my external pages do not keep the user logged in. First, I had to go i… | Read the rest of http://www.webhostingtalk.com/showthread.php?t=1747178&goto=newpost Continue reading
Posted in HostGator, Hosting, php, VodaHost
Tagged external-pages, hosting, keep-the-user, migration, not-keep, php, rest, the-rest, time, user, well-known-host
Comments Off on phpBB board logging out users in external pages
Ripped off by a username hmk20009
Hello, I tried to make a transaction with the user by the name of hmk20009 this person has gone out of his way to screw me over on the tr… | Read the rest of http://www.webhostingtalk.com/showthread.php?t=1746309&goto=newpost Continue reading
7 Ways to Improve Site Speed and Performance in 2019
The post 7 Ways to Improve Site Speed and Performance in 2019 appeared first on HostGator Blog . You go to a website and it feels like it is taking forever to load. What do you do? Do you wait patiently for the webpage to load in its entirety? Or do you simply close the browser tab and move on with your life? The fact of the matter is that page load time not only has a dramatic impact on user experience, but it also greatly impacts conversion rates, as well as search engine optimization. Regardless of the type of website that you have —whether it’s a blog, an e-commerce store, an online forum, or an affiliate landing page—it is in your best interest to provide the fastest site speed and performance possible. But how do you get there? Here are seven tips that you can use to reduce those load times and boost the user experience on your website in 2019. 1. Use a Content Delivery Network There are certainly a lot of steps you can take in terms of the actual content on your website. You can shrink images and optimize your JavaScript. But you also have to consider where your servers are located relative to the users who are accessing them. The Internet isn’t wholly virtual, because physical space must still be traversed. It is substantially faster for someone in Los Angeles to access to a server in San Francisco than it is for that same person to reach a server in London or even Chicago. The goal of a content delivery network, or CDN for short, is to improve website performance by picking a server that’s closest to the end user. We recommend you take a look at the way a CDN works , to get a better understanding on not only how the concept works, by also why it’s being used my the majority of top sites on the internet today. That’s where there’s a whole network to deliver this content. The best CDNs take this further by offering higher-speed storage, optimization tools, intelligent and dynamic caching, and security features to optimize performance even further. You’ll want a CDN with great global network coverage and high availability solutions. The pro plan from Incapsula starts from $59 per site per month, while the business plan goes for $299 per site per month. 2. Smush Your Images It probably won’t surprise you to learn that loading images can be one of the most taxing activities in terms of site speed and performance. Part of this has to do with resolution, but it also has to do with the level of image compression and other factors as well. There’s no real reason to upload and display a massive 20-megapixel photo if you’re just going to resize and show it as a thumbnail that’s only 200 pixels wide. You can start from the images you actually upload to your server in the first place. Generally speaking, you don’t need images that are several megabytes in size. Depending on circumstances, you can get away with 200 KB or less with no real discernible loss in quality for most users. Another great approach is a WordPress plugin called Smush . The goal is to cut “all the unnecessary data without slowing down your site.” 3. Shrink Your JavaScript and CSS One of the first and easiest places for you to look in terms of improving page load times is by addressing unnecessary inefficiencies in your site’s code. More specifically, JavaScript (JS) and Cascading Style Sheets (CSS) can be very inefficient in their default code. There’s a lot of white space, for starters, and several lines of redundant code can be reduced down to something much shorter. As you can imagine, the less code a browser (and server) need to run through, the faster the page should load. If you have a WordPress site, it’s easiest if you use a plugin like WP Super Minify to do this for you. You’ll want to make a full website backup before you do, of course. As recommended by many of the top CSS sites , if you have a different kind of site or you’d rather just do it manually, there are several online tools that can do this to. Minifier is one such example. The tool works by removing whitespace, stripping comments, combining files, and optimizes/shortens a few common programming patterns. 4. Reduce HTTP Requests All else held constant, the simplest sites are going to be the ones that load the fastest. If you have a simple, plain HTML page with plain text and minimal images, it’ll probably be quite quick. If you have a dynamic page that calls upon a number of other factors and content types, you’re going to get bogged down. You can dramatically increase the speed of your site by reducing the number of HTTP requests. The cleaner the code, the better. Perfmatters is a performance-oriented plugin for WordPress that can automate most of this for you. It starts from $19.95 per year for one site, going up to $99.95 per year for unlimited sites. While many site owners and bloggers might not understand what each of these settings or commands actually are, the tool makes it extremely easy to check on or off which performance options you would like enabled. 5. Upgrade to Dedicated Hosting Most people who are just starting out with their first website, and indeed many veterans too, typically opt for shared hosting because it is usually the most cost-effective option. What this means, though, is that you are sharing resources (server and bandwidth) with other customers and you have no control over how they are using those resources. If another website on the same server suddenly sees a monumental influx of traffic, the site speed and performance of your website will suffer. There are many variables outside of your control. To overcome this, you might consider getting an advanced dedicated server . They have managed and unmanaged solutions, but the long and the short of it is that you get a server all to yourself. This allows for much greater customization, should you so desire. More importantly, you get dedicated hardware and much more consistent performance. That means faster speeds overall, especially when you opt for dedicated servers with better hardware too. 6. Enable Lazy Loading Generally speaking, when someone arrives at a webpage, the entirety of that webpage will try to load. Some elements can load simultaneously, while others must load sequentially. Depending on how the site is designed and laid out, users may experience really long loading times due to elements that they can’t even see yet (and they may not ever see). Or they’ll notice that the site is still loading in their browser, even though it looks as if the content of interest is already available. In both cases, this detracts from the user experience and hampers site speed. A way to overcome this is something called lazy loading. When lazy loading is enabled, elements on a webpage are loaded on an as-needed basis. In this way, items further down the page don’t get loaded until the user scrolls down there. This results in the perception of faster load times, as elements higher up the page are prioritized. There’s a great guide on the Google Developers Web Fundamentals section for more on this technique. 7. Minimize External Scripts Widgets can be great. They can be wonderfully convenient, updating your website with all sorts of dynamic content. Maybe you’ve got a Twitter widget in your sidebar that displays your latest tweets. Maybe you use a widget from Amazon to display featured products. There’s a world of possibility. The problem is that when you rely on these external scripts, you are also at the mercy of these external scripts for page load times. If Twitter happens to be hanging for whatever reason, then your site speed suffers as it waits for that widget to load correctly. And the same is true with all sorts of “hidden” elements on your page that rely on external services too. While it may not be completely practical to eliminate all external scripts altogether — you’d want to keep Google Analytics , for instance — it is prudent to minimize their use as to minimize their impact on page load times. Better site performance tends to improve user engagement . Implement these tips in 2019. Your website visitors will thank you! Find the post on the HostGator Blog Continue reading
How Do I Read Data Into Objects?
I have this code here where I need to prompt the user for the name of the file and reads the data into an object. Here is what I have so far… | Read the rest of http://www.webhostingtalk.com/showthread.php?t=1741227&goto=newpost Continue reading
Posted in HostGator, Hosting, php, VodaHost
Tagged code, data, file, hosting, programming discussion, prompt-the-user, read-the-rest, reads-the-data, the-data, the-file, the-name, user
Comments Off on How Do I Read Data Into Objects?