« first day (8 days earlier)      last day (4941 days later) » 

9:12 AM
Is it true that lazy loading of Javascript can boost performance by loading it in parellel rather than blocking entire thing?
 
 
1 hour later…
10:30 AM
@Volatil3 It's not the lazy loading that does that, it prevents blocking yes, but it has little to do with the parallel load, it's mostly a separate issue. Loading your JavaScript off a CDN to parallelize download requests across domain names is one of the benefits there, several questions on this, for example:
13
A: Whats faster for including scripts, using CDN (Google) or store them locally in website root?

Nick CraverIf you mean the core jQuery libraries, use the google CDN for an internet-facing site (as opposed to an internal one). The CDN has the following advantages you'll find hard to compete with: More servers The bandwidth (you don't pay for) Geolocation (lower response time) Redundancy The optimi...

 
11:20 AM
hi
Could any body look at this code?
 
 
8 hours later…
7:00 PM
@Star where have you posted it for review?
 
uh don't think he's here anymore
 
@IvoWetzel maybe not, but @ replies ping him
 
7:23 PM
I find it really hard to find learning material for JavaScript that is beyond the basics - there seem to be amazing things that can be achieved with JS - can anyone recommend a decent manual?
 
@Tim have you checked out Javascript: The Good Parts? amazon.com/JavaScript-Good-Parts-Douglas-Crockford/dp/…
 
@Collin I haven't read the book, but have watched the author's lecture at yahoo where he goes through things like why == is broken
 
gov
Hi
 
Hello @gov
 
gov
I have a doubt in javascript for null check some times ==null works and !='' doesnt work
any idea?
I worked a lot in backend and recently movied to UI development , my questions might be so obvious for some people
 
7:38 PM
@gov I don't quite understand your question
 
gov
var strtemp=''
sorry i hit enter
 
gov
whats the difference between null and '' in javascript
 
you mean, between null and an empty string?
 
gov
yeah
 
7:40 PM
are you testing for truth?
 
gov
i have some code, i am doing a null check , but still it goes into the if block
 
an empty string is a fully-formed string object
it's not null
 
=== to the rescue
 
@jneira +1
 
gov
@ Tim , thanks for the video its nice
 
7:41 PM
null == '' -> true / null === '' -> false
i hope so .. i dont test it :-P
 
gov
@jneira ,thanks
 
@gov that video is a lecture of the book that @Collin recommends
it explains the differences between == and === very well
 
gov
This chat is really good
 
only php have more cases of false than javascript :-P
 
gov
ok
I have a question and its a kind of desgn quesiton , can I ask here
 
7:44 PM
@gov your mileage may vary, but go ahead
 
gov
I have a gallery page where there are lot images being displayed , for each image i am showing a
popup and it needs lot of info from the back end.

Right now i am having a hiddden div with data attribute and using jquery.metadata function to
get the values

After getting the values , i am sharing in a globa object in javascript ,I hava globa objectlike

RecordDetails and i store all record details in that , and a have sessionobject to store all
session related in that ojbect

and the javascript uses these global objects to retrive the necessary info while passing the
 
just now i am reading eng.wealthfront.com/2010/10/jquery-right-way.html which maybe is related with your question
 
gov
@jneira let me read that
Thanks
 
8:01 PM
but i dont have a experience to answer properly ... i dont use javascript heavily in front end .. my dev environment is obsolete :-/
 
 
2 hours later…
10:07 PM
/me wonders if he should write something on writing performant JS given modern JS engines…
 
10:28 PM
@gsnedders: you might be interested in github.com/rchern/StackExchangeScripts
 

« first day (8 days earlier)      last day (4941 days later) »