machan this also works
document.body.style.backgroundColor="#ccc";
what do you think? It won't work?Look for browser compatibility![]()

It will workwhat do you think? It won't work?![]()
Tried on IE8 no more Lt IE8 
haha IE8 is enough I guessIt will workTried on IE8 no more Lt IE8
![]()



ya that's what I wanna know. We can write fewer lines from jQ
so I wanna know about performance![]()
even though you write a less number of lines, the underlying pure javascript lines in the Jquery library has to be executed again.So essentially it's an overhead to the execution. First it executes the Jquery codes, then it runs the js. 
thanks macho..Pure Javascript is of course faster than the Jquery libarary. Jquery is essentially a set of functions written using pure Javascript. So it is a clear fact that the native code is always faster![]()


thanks macho..
still new to language![]()
Machan you're worrying about the wrong problem, with more experience you'll realize this. Worrying about something like this is the last thing you should do be doing when developing. Of course frameworks and libraries going to be bit slower than pure language implementation, but we're talking milliseconds here. If these things really mattered no frameworks will exist like Backbone JS, Ember or Angular.
Read more - "premature optimization"
http://c2.com/cgi/wiki?PrematureOptimization
http://programmers.stackexchange.co...ture-optimization-really-the-root-of-all-evil

තෝ නම් හෙනම Angular කුකුලෙක් වගේ. Username එකෙන්ම තේරෙනවා.![]()

But you know,
It's very slow when rendering big lists 


ඇන්ගියුලර් අනාතයෙක්![]()
But you know,
Angular's ng-repeat has performance problemsIt's very slow when rendering big lists
http://tech.small-improvements.com/2013/09/10/angularjs-performance-with-large-lists/

සුදු පුතා;17677543 said:Good Thread, I collected some good knowledge about JS and JQ within this discussion. I'm still studying web programming and like to know about JS frameworks. If you all can continue this thread with good ideas. It will help to newcommers on this field.
Also I want to know about this- I have a php script and its manipulate some database and provide some out put. I want to insert that out put into my web page without reloading the page.
eg-if some one select the student ID, then other fields should fill automatically. I know we can do this using JQ. But its seems to be complex to me. How can I use JSON Encode and how can I take values through the JSON?
If you can give me some example, I appreciate you.
(My english is not good, feel free to skip language errors)
thanks.
Good Luck.
Dude, it's not about the number of lines you write using Jqueryeven though you write a less number of lines, the underlying pure javascript lines in the Jquery library has to be executed again.So essentially it's an overhead to the execution. First it executes the Jquery codes, then it runs the js.
At the end of the day, it's all Javascript!!!!!! Do not get confused, JS and JQ are not two different languages. Jquery is just a set of javascript functions written to make your life easy. Your browser essentially does not understand JQuery, it knows only Javascript![]()




i feel angularjs is slower than jquery![]()
So obviously it should have low performance than Jquery. But these features are usually required/nice-to-use to create a modern web app.
). 