Search the Community
Showing results for tags 'js'.
Found 3 results
Every single day people ask us how to speed up their sites. So here are the most common reasons why a site can be slow and some solutions. Shared Hosting Shared hosting speeds depend on many factors. How many other people are you sharing with? Often this is the main contributing factor and using the this tool you can instantly see how many other sites are competing for the resources. Networked files systems. Often shared hosts will use networked filesystems to get more and more customers onto their overloaded servers. This is great unless you have many small files to load ( think file based object/db cache ) and the webserver has to fetch every single one over the network! Poorly configured. Sometimes hosts disable a lot of core PHP functionality to make it more secure. SuHosin if not configured properly can cause problems. One of the worse things for slowing down the web server is the amount of HTTP requests on a page. Back in the old days it would be one html file and a few images, so maybe 5 requests per page. Things have changed dramatically now! Ive tested some sites reported slow on this forum and seen well over 100 HTTP requests on one page alone! Imagine there are 1000 other sites on that server all with 100 requests per page! Now do you see why shared hosting is kinda slow sometimes? So there are a couple of ways to squeeze some more speed out of that 2 bit outfit you are paying next to nothing a month for. Caching. Im going to stick my neck out here and recommend wp-super-cache. Its been around for ages and just works! It will store your pages/posts etc as static files and serve them via .htaccess so PHP is not even loaded. Also has built in support for CDN Pull Zone. CDN. A Content Distribution Network offloads all your small files ( css/js/images ) to many other servers around the world and they are served by the closest server to the end user thats viewing your page, this speeds up your page response time by a huge amount! Remember all those HTTP requests I mentioned just now? There are a few CDN plugins about none of which I have the time to test so I wrote one myself, its attached to this post. I adds a menu to the PageLines admin area with a text area to add your pullzone. If you need a cheap CDN package I recommend MaxCDN. Resources mentioned in this post. WordPress Super Cache Reverse IP lookup tool MaxCDN
Hi I'm using ajax to load pages on my site but I am also using the Facebook like button short code http://support.pagelines.me/docs/miscellaneous/shortcodes/ I need to reload the JS associated with this short code as the Facebook like button disappears when the page is loaded with JS. Could anyone assist me on the location of the file containing the JS? I have the reload code all figured out but I just need the file location. Any assistance would be much appreciated. Here's my homepage http://www.priceofmilk.co.uk/ Link to a post where it will display normally on first load http://www.priceofmilk.co.uk/uncategorized/testt If you click through to a couple of posts you will notice the like button no longer shows up, it seems to display the first load of a page but if you keep clicking through posts it stops. The button should be displayed to the left of the following text beneath the post content 'Click like to get the latest music news, hottest tracks and more via Facebook.'