Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
Is there a library which makes all browser's JS interfaces comply to W3C standards?
For example, one that will add addEventListener to IE8, based on attachEvent.
EDIT 2022. core-js was created a year after this question. I guess it wasn't that much off-topic, huh?
Every modern javascript framework offers you methods to even out these inconsistencies in the browsers js implementation (like jQuery's on handles addEventListener/attachEvent). Most of these frameworks however don't use the approach to alter the host objects (which is considered problematic) but their methods internally map to the according functions available in the specific browser.
I suggest you try one of those many popular frameworks (like e.g. jQuery, MooTools or Dojo to name only a few of the more popular ones).
I suggest to NOT use a framework which alters the host objects directly (as some of them tried in the earlier days and later discovered that this causes many problems).
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
How can I convert minimized java script to early Edition?
Is any software or website for this work?
Thank u for hints.
No, there is no software to unminify javascript you can minify it but reversing is not possible, if you are creating your own javascript code then you must keep both javascript versions minified and unminified for future reference.
And if you are using a javascript library or framework then both versions (minified and unminified) will be available on that site.
JavaScript cannot be "unminified". The purpose of minification is to represent the original javascript in the least number of characters. However it is a one way transformation since there are no clues in the minified version that can lead you back to the original content.
Ex: the variable myLongVariableName can be minified to just a since the JavaScriupt interpreter doesn't care about human readable variable names. However, after it's been mapped to a there is no way to map it back to myLongVariableName
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
Hello i would like to check if ALL features of HTML5, CSS3 and Javascript are supported in my browser before redirecting the user to the application itself, i have seen some references to Modernizr but even after reading their documentation i can't make heads or tails of how to use it.
I just want a simple function that returns a boolean after the check has been made. Is there any sort of function like that out there somewhere?
Life (and browser compatibility) is more complicated than a single boolean.
Use Modernizr, then make sure all the specific features you actually need are supported and do your redirect, for example:
if(Modernizr.geolocation && Modernizr.boxshadow/* whatever else ...*/) {...}
You tagged your question as 'php' - but reliable feature detection can only run on the client side. If you want this info on the server you can run the tests client side and then pass the interesting results in a cookie or something similar.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I would like to know, how can I write something(small) like node in native lanuage(c,cpp). I read that c,c++ experts developed node.js and made it available with javascript interface. This interface is much much simpler to start with node.js applications.
This is not about re-inventing the wheel,(only learning) but I want to learn/understand the way where to start if I want to create a server that work like node, it is not performance or scalability or simplicity oriented. nothing like that.
Any book or any c,cpp topic that will help me to start with websockets, broadcasting data and such important features of node. I am new to c,cpp also but need to understand what is making node such a strong technology.
Any other solutions than taking source code of node.js ?
Node.js is powered by libuv - it's an asynchronous crossplatform io library, written in C. Basically, it does everything node does, but exposes only C interfaces.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
iam looking for some tools or ways to detect memory leaks, slow methods in my javascript app.
You need to use the profiler; I recommend Chrome's. In the profiler the steps are
Go to the profile part of the developer tools
Get to the part where the slow js is
Start recording
Start the suspect code
Stop recording
After that, the profiler will tell you everything you want to know about how many objects there are, how much time is spent in each method, etc...
The procedure should be similar with Firebug on Firefox.
Good question. Profilers/browser plugins are handy, but very well may yield results unique to the browser being tested on. There are a number of techniques available from testing via multiple browser's plugins/profilers to inline debugging performance statements.
Two good articles with, robust examples and recommendations:
How do you performance test JavaScript code?
Memory leak patterns in JavaScript
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I see that javascript is becoming more and more practical as a server side language with the advent of node.js and v8. As far as frameworks go, most of what I've seen are minimalistic frameworks. Even express.js, one of the more promising ones, is a little bare.
Are there any full stack server-side frameworks out there for JS yet?
There's RingoJS, the current form of the (surprisingly old) Helma framework. It's a Rhino-based implementation, so you can get whatever you want from the JVM (sort-of a "good news/bad news" joke I guess).
Check out towerjs and railwayjs.
There is a very powerful webapp stack called ringojs. It is actually a Rhino prompt that you can use to run javascript modules. It is based on Jetty and features a well designed set of modules and a powerful but simple template engine (including inheritence and macros). You can reuse the galaxy of Java libraries out there throught simple Javascript-Java interop. Coming from J2EE development I threw out a lot of ceremony code and configuration - it is very productive, especially tweaking your running webapp throught the prompt