Tag Info

Hot answers tagged

8

If your framework/CMS/whatever has the appropriate functions, you can include the scripting conditionally as @Michael suggests, but without the additional library. Taking your datatables case, for example, WordPress might handle the situation via something like: // For reference; this isn't functional code. if (is_page('whatever')) { <script ...


6

You can use requirejs to dynamically load the libraries you need only on that pages. Then you only have to load the requirejs (which is about 14k) on all pages, saving about 385kb. Integration is also very easy: just "wrap" the code you have with the require include stuff: require(["jquery", "jquery.alpha", "jquery.beta"], function($) { //the ...


5

700kb of JavaScript IS a performance issue, because it must be parsed after page load. Because of it, you should take care, that only those scripts, that are needed, are loaded. One big JavaScript may be OK on full AJAX sites, such as GMail, when the navigation is handled internally without leaving the single page. However, even full AJAX sites do dynamic JS ...


5

This is because some image formats, such as PNG, JPEG and GIF can be saved in an interlaced/progressive form which allows the full image to be roughly rendered immediately, with an increasing level of detail added as more and more file data is received. This contrasts with the "baseline" format, which arranges the image data in a top-to-bottom fashion, which ...


4

The second request is made by the following CSS rule (lines 46 to 50 in your HTML-output): <style type="text/css" media="screen"> body{background:#f9f9f9 url('') ;} </style> Apparently url('') is interpreted by the browser as "the current url". So this CSS rule tries to load the current URL as background but since no image is returned it ...


4

Generally speaking, yes, off-loading comments will reduce your load pretty much inherently, since WordPress won't be dealing with the overhead of saving the comments, fetching them for display, etc. There will still be a small amount of db work involved as comments get synchronized, but after that it's almost all just storage. How much the difference ...


4

View source. It's Paul Irish's Infinite Scroll jQuery plugin, for WordPress.


2

Yes it will help, but note that Facebook comments are stored only on the facebook site and not in your Wordpress database. Disqus, Intensedebate and Livewire are great offsite comment systems with the function that syncs the comments with your wordpress database.


2

First up, you definitely shouldn't put JSON files is a sitemap as they are meaningless to a search engine, which wants web pages. It wouldn't make sense for a user to land on your /Content/goldenglobes.json file. So if the site stays exactly as it is, then a sitemap provides zero benefit. However, if you are loading in content with JavaScript you may wish ...


1

Estimates can vary widely depending on how long the database queries take and whether there is any caching involved, along with the amount of RAM, processing speed, and many other factors on the server itself. However, as a very large ballpark I would generally expect any reasonably simple website on a modern server with updated software to be able to ...


1

It's more important if one or more of your plugins is a known resource hog, not how many plugins you use or not. Try to implement caching if you don't have yet, that's always a good starting point. For wordpress install W3 Total Cache or WP Super Cache. See this draft about Testing Wordpress Performance. Do you have some webanalytics software installed ...


1

~700kb of JavaScript is a performance issue and if compressed and we have to see the Rules to be followed while dealing to optimize the Code are: Minify Javascripts - Simply you are compressing and decompressing, which didn't reduce the code, First of all use the good Minify JS tool and Minify your code. You are 12 Files and each file would be Minify ...


1

Can internal linking create excessive web server load? Not unless your server is already struggling - Googlebot (unlike many poorly-conceived spiders and some recursive downloading agents) throttles requests and even allows webmasters to specify how often Googlebot should visit pages via Google Webmaster Tools (if your server is already struggling). ...


1

It is the trailing slash that is triggering the issue. Your server is handling non-existent directories by sending them to the home page. You should be getting a 'Page doesn't exist error' instead. If you are on a linux account, you may want to check you .htaccess settings. Otherwise I would look into your link structure. Why do you have the trailing ...


1

Check to make sure your cases match between the URL and the file itself. contactUs.php is not the same as contactus.php. I've never used MAMP but it's possible that it doesn't care about case; I know that XAMPP under Windows treated URL's as case-insensitive, which caused me some problems when moving to GoDaddy's Linux hosting.



Only top voted, non community-wiki answers of a minimum length are eligible