Archive for posts tagged with “optimization”
SEO Internal Link Shortcode for WordPress
0 commentsAuthor: Steven Vachon
This plugin allows you to create internal <a>
links within your content that will not break when things get renamed or moved. While there are similar plugins available, they do not offer important SEO options.
You can add any HTML attribute to your link as long as it’s prefixed with “attr_”. And because it supports attributes that may not currently exist, it is future proof. Read more
Benchmark: PHP array_splice vs. unset & array_values
0 commentsAuthor: Steven Vachon
If you’re wondering which of these two popular techniques for removing array indexes is fastest, this should be of some help. Read more
Benchmark: PHP Reverse Array while vs. for vs. foreach
0 commentsAuthor: Steven Vachon
When looping through an array in reverse and wondering which was faster while finding nothing on Google, I put this benchmark together. Read more
Benchmark: PHP strlen vs. count (and sizeof)
0 commentsAuthor: Steven Vachon
I was writing some code that generated a string from an array and came across a pretty rare situation where I could either get the length of that array or the length of the assembled string. Wondering which was faster and finding nothing on Google, I put this benchmark together. Read more
Single-File Facebook OAuth 2.0 Example
0 commentsAuthor: Steven Vachon
I couldn’t find a simple, straight-forward example of this stuff. Facebook’s documentation isn’t wasn’t extremely clear either. Read more
Shuffle and Randomize Arrays in ActionScript and JavaScript
0 commentsAuthor: Steven Vachon
I’d been looking around for the best solution for this and most of what I had found either performed poorly or wasn’t quite random enough. Not so strangely in the end, the best solution was the most basic. Read more
Absolute-to-Relative URLs
2 commentsAuthor: Steven Vachon
The title says it all. So, if you were to use this library on a website like http://example.com/test/testing/, you would get results like these: Read more
Benchmark: ActionScript 3 Vector vs. getChildAt
1 commentAuthor: Steven Vachon
I have never stored my particle instances in an array or any unique variables. There’s just no need to. The same can be achieved using only the child list, and with less bloat. New to Flash Player 10 is the Vector()
class, and while they are faster than arrays, are they faster than getChildAt()
and the child list? Read more
HTML Minify (WP-HTML-Compression)
19 commentsAuthor: Steven Vachon
Combining HTML “minification” with cache and HTTP compression will cut down your bandwidth and ensure near-immediate content delivery while increasing your Google rankings.
This plugin will compress your HTML by shortening URLs and removing standard comments and white space; including new lines, carriage returns, tabs and excess spaces. Most importantly, by ignoring <pre>
, <textarea>
, <script>
and Explorer® conditional comment tags, presentation will not be affected. Read more
Components… Ugh!
0 commentsAuthor: Steven Vachon
Components can be useful when writing code that’s to be used by designers with little or no programming experience. The visual elements created when building a component make customizing them as effortless as using Flash MX’s user interface. But what does this end up costing the developer? Read more