Skip to content

flimzy/onload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

GoDoc

onload is a very simple module, designed to provide cross-browser, jQuery-like onload functionality without the bloat of jQuery. It is writen entirely in Go. To use it:

package main

import (
    "fmt"
    "github.com/flimzy/onload"
)

func main() {
    onload.Ready( func() {
        fmt.Print("The document is ready!\n")
    })
}

This code is based on this StackOverflow answer, but somewhat simplified, and of course adapted to Go.

This software is released under the terms of the MIT license. See LICENSE.txt for details.

About

Onload handler for GopherJS without the bloat of jQuery

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages