Here's a quick tip. Instead of writing:
ColdFISH is developed by Jason Delmore. Source code and license information available at coldfish.riaforge.org
$(document).ready(function() {
// Code and functions here
});
1$(document).ready(function() {
2// Code and functions here
3});
We can instead write:
ColdFISH is developed by Jason Delmore. Source code and license information available at coldfish.riaforge.org
$().ready(function() {
// Code and functions here
});
1$().ready(function() {
2// Code and functions here
3});
or even:
ColdFISH is developed by Jason Delmore. Source code and license information available at coldfish.riaforge.org
$(function() {
// Code and functions here
});
1$(function() {
2// Code and functions here
3});
Albeit, it isn't a huge code reduction but it is a nice shortcut.
Comments