Browsing articles tagged with " PHP Development Tips"
Oct
13
2011

Using PHP to merge and minify CSS and Javascript

tiny

One MAJOR factor in the usability of your website is site load time.  This is affected by a number of factors: the number of images, database queries, and the number of server requests to fetch your stylesheets and javascript files (which is what we’ll be talking about today!). The following example is for javascript files, however I’ve included a JS and CSS version in the download at the bottom of the page. The defining difference [...]

Sep
24
2011

Synchronous Input Population Using JavaScript

Synchronization for html input forms

Working with code can often be tedious, and frequently requires programmers to continually reference functions or other sets of code that exists on different pages.  For example: As a relative newbie to wordpress, when creating or modifying files I spend ~70% of my development time looking through files for correct/applicable function usage.  If I wish to display an option to edit a post in a template, I must use “edit_post_link(‘edit’, ‘<p>’, ‘</p>’);”, however, the chance [...]