/    Sign up×
Community /Pin to ProfileBookmark

jQuery integration into existing framework

I’m currently evaluating, whether it makes sense to integrate jQuery into my existing framework: [url]http://4nf.org/[/url] Please have a careful look at the following file, and what I’m doing there:

[CODE]http://4nf.org/n.js[/CODE]

Is there potential for simplifying the code in this file?

I know this is not exactly a trivial question but would be very grateful for any kind of feedback.

Thanks in advance and kind regards

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@arvgtaauthorJul 13.2012 — Sorry, here's the link to the JS, once again, for your convenience:

http://4nf.org/n.js
Copy linkTweet thisAlerts:
@arvgtaauthorJul 13.2012 — just tested including the jQuery library, writing

[CODE]ini() [/CODE]

...as a callback at the end of it and then adding the following code:

[CODE]function ini(){$(document).ready(repaint);}[/CODE]

...which saves me the whole Google DOMReady code!

If you have a look at the following file:

http://4nf.org/n.js

...can you think of any further simplifications?

(for example, I'm using AJAX and setting it up manually. I could probably use jQuery's functionality for that, too)
×

Success!

Help @arvgta spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...