wilderguzman / tradie-choice

Automatically exported from code.google.com/p/tradie-choice
0 stars 0 forks source link

optimise code #248

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.
After running ie8 debugging I noticed some code which will slow performance

<script type="text/javascript">
    jQuery.noConflict();
    var address_latlng = [ {
                id: '3',
                name: 'mujtaba',
                cat: 'mujtaba',
                loc: 'Chakwal District, Punjab, Pakistan',
                lat: 32.8322117,
                lng: 72.61511689999998
            },{
                id: '7',
                name: 'insom',
                cat: 'insom',
                loc: 'Ferntree Gully VIC 3156, Australia',
                lat: -37.883583,
                lng: 145.29539499999998
            },{
                id: '8',
                name: 'nzprince',
                cat: 'nzprince',
                loc: 'Mt Eden, Auckland, New Zealand',
                lat: -36.8801967,
                lng: 174.76164990000007
            },{
                id: '16',
                name: 'provider',
                cat: 'provider',
                loc: 'Brisbane, Queensland, Australia',
                lat: -27.4710107,
                lng: 153.02344889999995

2.
if i have 1000 users in site, then this will cause the page to load 1000 user. 
this will cause the page to load very slowly.

What is the expected output? What do you see instead?

Please send me some alternatives via email, of what we can do to optimise this.

Original issue reported on code.google.com by cih...@gmail.com on 13 Nov 2013 at 1:37

GoogleCodeExporter commented 8 years ago
as discussed on page load solution, with prune

Original comment by cih...@gmail.com on 13 Nov 2013 at 4:31

GoogleCodeExporter commented 8 years ago
Hi Jon, I have made some update in controller and view file. I don't know why 
this code was written. I have commented the code in file. If I found it is 
necessary then I will rewrite this.

You update this issue as fixed.

Original comment by bdsa...@gmail.com on 21 Nov 2013 at 6:56

GoogleCodeExporter commented 8 years ago

Original comment by cih...@gmail.com on 29 Nov 2013 at 12:48