Jump to content


BrowserBugs

Member Since 07 Feb 2012
Offline Last Active Yesterday, 10:54 AM
-----

#512141 What is Major Mistakes of Web Development for Small Business?

Posted by BrowserBugs on 06 January 2017 - 11:23 AM

Lol these threads always make me laugh, but to humour the op "What is Major Mistakes of Web Development for Small Business?" ... letting the small client overreach themselves, failing to take the client into consideration and their effort (or lack of). Some clients dream big - want all the bells and whistles, blogs, social channels and more yet they are hard pushed to come up with 2 paragraphs of half decent copy, WTF would they do with a blog?

 

Developers need to think before suggesting features, I've done it before, spending ages making a super cool custom cms the client wanted only to find they have lost interest keeping it updated after the honeymoon period, or their blog hasn't had an article since 2015, or their last tweet was about the London Olympics and they still only have 14 followers on facebook.

 

Now in every meeting I casually throw in "... and who will be keeping this up to date?" or "... so how often will this be updated?", with these answers you can make a site which they can maintain or a site that requires no maintenance. All too easy to reach for a CMS when it's often overkill for the client.




#511980 How many jQuery scripts do I need?

Posted by BrowserBugs on 27 December 2016 - 07:39 AM

I don't think you can do anything about those issues as the cache is set by the server delivering the resource. Generally when I develop I make sure the page hits 100/100 before I include third party bits. So for most of my clients they get 99/100 with only one issue...

https://www.google-analytics.com/analytics.js (2 hours)

So in your case each of those third party scripts will niggle away at the overall score.

 

Your cache in the htaccess looks ok, just depends how often things change.




#511956 How many jQuery scripts do I need?

Posted by BrowserBugs on 26 December 2016 - 10:48 AM

For speed it's all about delivering content prior to non required resources, lightboxes, toggle menu etc require interaction to function thus not required on initial load. If your js is broken then either their scripts are above the jquery file or they required a more recent version to function. In your op you had 2 jquery files loading, 3.1.0.min.js and jquery.js, not sure which version the jquery.js is? Also they should sit before the closing </body>.

 

I use javascript to load jquery and below the fold css (e.g. css not required to structure the page). Since i'm no js expert I used someone elses method which works quite well. Most my sites score 100%, but 95%+ if I have to use third party js where the cache is set to just 30 mins.

<script type="text/javascript">
function loadjscssfile(filename, filetype){ 
	if(filetype=="js"){ var fileref=document.createElement('script'); fileref.setAttribute("type","text/javascript"); fileref.setAttribute("src", filename); }
	if(filetype=="css"){ var fileref=document.createElement('link'); fileref.setAttribute("rel", "stylesheet"); fileref.setAttribute("type", "text/css"); fileref.setAttribute("href", filename); }
	if(typeof fileref!="undefined") { document.getElementsByTagName("head")[0].appendChild(fileref); }
}
loadjscssfile("/css/below-the-fold.css", "css");
loadjscssfile("/js/master.js", "js");
</script>

Images, always compress, tinypng.com and compressor.io are my go-to tools for this, I know both can do both png and jpg but I find each better at one file type. Also don't forget you can set cache via htaccess.




#511945 How many jQuery scripts do I need?

Posted by BrowserBugs on 24 December 2016 - 05:24 PM

 

Static assets such as scripts, images and so on can actually be served faster via CDN than keeping them local as users will download from a service that is geographically closer to them than the server where your site is hosted due to reduced latency.  e.g. your site is hosted in London and you get  a visitor from San Fransisco, the latency on that just to establish the TCP handshake (Before any meaningful data is transferred) is over 100ms.

 

It will also aid performance if your site receives a sudden spike in traffic, your server will cope better.

 

 

You generally want a single script that you bundle up and serve to your visitors to reduce the number of HTTP requests; however you can improve performance further by splitting up assets by page/route whereby you'd serve up a common script, then serve what is necessary for a given page and even load some scripts asynchronously based on a user action. 

 

No doubt mate, but it's often hard enough to get a client to buy decent hosting let alone splashing out on bells and whistles they can't 'see', knowing your job position in a company of that size you'll get all the toys ;)

 

Great point about splitting, pointless loading a single js file with a massive validation section only used on one page on the site, better to load the extra file when required, especially at a certain step point in the process, e.g. when required.

 

That said I'm waffling on like I know js, lol, my pet hate ;)




#511934 How many jQuery scripts do I need?

Posted by BrowserBugs on 23 December 2016 - 09:27 AM

I always use a local copy of the min version as I can set the cache. The two in your head is just loading 2 copies of jQuery, you only need one. Using an external version is a cross site request so would be slower.




#511932 Help with stalled design please!

Posted by BrowserBugs on 23 December 2016 - 09:15 AM

A quick thought about the sponsors. Why not have a sponsors page with a list and then use the banners with something like Slick to rotate, then you would have just one banner slot to home rather than a list per page? Just an idea :D




#511862 Font selection does matter

Posted by BrowserBugs on 19 December 2016 - 05:33 PM

d180d36497a75f529b2a10c7bc861b80.jpg




#511803 Can you spot what's wrong?

Posted by BrowserBugs on 16 December 2016 - 10:36 AM

It's probably a minor thing Google likes on one and not the other. It could just be down to the domain name or a single good inbound link

 

However, I've just googled: trampoline park sussex and they both rank on page 1. A few tweaks to urbanjump and it could outrank the other. Fixing the truly awful code would be a good start - fixing this would tick a number of Google's boxes.

 

Totally agree here, also the other business is actually called 'Sky High Trampoline Park' and the other is called 'Urban Jump Ltd', and i'm not talking just domain, it's the business name. Second point to note is the same search term brings back just Sky High as a business result, unlike say 'Martial Arts Classes Sussex' which brings back 3 map results of different businesses. This says to me Google might just be relating the search term to an actual business request, hence the home and 2 sub pages for Sky High on that search term.

 

map.png




#511764 Layout Grid & Breakpoints

Posted by BrowserBugs on 15 December 2016 - 09:13 AM

Morning.

 

Layout Grid

 

 

a structure comprising a series of horizontal and vertical lines, used to arrange content

 

That said you don't always need to use a grid, you can just use responsive columns based on percentage.

 

Break Points are exactly as they sound, it's when you need to change the flow or layout as the screen size has got too small for the design, the point at which the design 'breaks'. These can be compensated for using css and media queries.




#511753 Building a hidden WP site

Posted by BrowserBugs on 14 December 2016 - 04:48 PM

One bit of advice is make sure you know how the plugin handles the non logged in state, you don't want to cache a bunch of identical pages under different urls. I think Teodora implemented my beta mode into a plugin for WP where you can set the http header status to either 503 (under maintenance) or 404 (not found).




#511685 What equipment and software would you buy being a web designer?

Posted by BrowserBugs on 13 December 2016 - 11:18 AM

Just to add to Grants list I would say a comfortable chair / desk combo ... you'll be there for hours :D




#511621 Advice with an over demanding client on a 260 website project.

Posted by BrowserBugs on 10 December 2016 - 03:55 PM

Mate I totally know your situation, been there, and like yourself I'm a little longer in the tooth and a scratch writer. I've had this with my brother-in-law, sister, dads friends accountants dog etc, always seems the ones who should be supporting your business are the very ones who are late paying and want constant freebies. 

 

Since it's mates rates you need to draw a line somewhere, but always make sure the word 'mates' is underlined, and ask fisicx made the point they'll need to pay more as it's well outside specification. Also, even at mates rates I'd start to be wondering where my £260 is, live site and no 'how do you want me to pay you' email, could get messy.

 

If your mate was a builder I'd make the point that if you had asked him to cement a few bricks down and your constant requests turned it into a new wall, then wall with drive, then into an extension and landscaped gardens all for £260 what would they do?




#511540 OK to have 2 similar pages on 1 website?

Posted by BrowserBugs on 06 December 2016 - 09:08 AM

No problem mate, helps to bounce ideas around :D




#511530 OK to have 2 similar pages on 1 website?

Posted by BrowserBugs on 05 December 2016 - 06:05 PM

which category the whole maintenance page has more relevance to (Windows or Computers), and just have one page?

 

This was more my thinking. Ideally you want 1 page for 1 article, my question was more does the information on that page (those 2 identical examples) lean more towards a 'windows' tutorial or a 'general computer maintenance' tutorial?

 

 

When you say 'free up disc space', are you suggesting that that could be a link (called Free up disc space) within the Windows section of the main menu? I'd like to check what you mean by windows section and maintenance section.

 

I think we're struggling here as you have no breadcrumb hierarchy or family tree. So in theory these would be your breadcrumbs?

 

Home > Windows (/windows.html)

Home > Windows > Windows Maintenance (/windows-maintenance.html)

 

Home > Computers (/computers.html)

Home > Computers > Computer Maintenance (/computer-maintenance.html)

 

The thing about hierarchy is that search terms and themes are carried to the siblings, so my wonder is would you consider the article more to do with 'Windows' as in tasks carried out in Windows or more 'Generic Computer Maintenance' which could apply to multiple OS and hardware setups.

 

Glimpse reading the article my point about free up disc space was that Windows 10 has a built in disc cleaner, yet your screen shots are from a third party software, so not native to 'Windows', so it leads me to think it should be just under Computer Maintenance, but then other sections are very Windows specific in the article, mixed messages as a reader and I think the search engines might get mixed messages too.

 

You mentioned rewriting bits of each to split the content but maybe you need one on 'general maintenance of computers' (e.g using CCleaner) and one on 'maintenance with Windows' using the windows default tools?




#511520 OK to have 2 similar pages on 1 website?

Posted by BrowserBugs on 05 December 2016 - 09:01 AM

No problem. Those pages right now I would canonical or as you suggest edit one significantly enough to make 2 unique pages. I think you just need to work out which category it has more relevance to, maybe use just use the 'free up disc space' method in the windows section and cover CC Cleaner and other third party tools for the job under the maintenance section? You can then mention Windows has a built in disc cleaner (link to windows article)?