Adult Script Pro Community Forums

The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!

You are not logged in.

#1 2011-05-18 11:53:33

Eri
Member
Registered: 2011-03-18
Posts: 977

[NOT A BUG] Same JS file load from defferent place

Same JS file load from defferent place.

from link: http://demo.adultscriptpro.com/users/admin/
<script type="text/javascript" src="/profile/templates/default-pink/js/jquery-1.5.min.js"></script>
<script type="text/javascript" src="/profile/templates/default-pink/js/jquery.main-0.1.js?v1"></script>

From link: http://demo.adultscriptpro.com/
<script type="text/javascript" src="/templates/default-pink/js/jquery-1.5.2.min.js"></script>
<script type="text/javascript" src="/templates/default-pink/js/jquery.main-0.1.js?v1"></script>


Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

#2 2011-05-18 13:10:39

Coscast
Member
From: Germany
Registered: 2010-10-03
Posts: 546

Re: [NOT A BUG] Same JS file load from defferent place

Uhm.

That are different js files.
jquery.main-0.1.js
and
jquery-1.5.2.min.js

But maybe i misunderstood you.


sgt-halfsize-banner.jpg

Offline

#3 2011-05-18 13:22:04

Eri
Member
Registered: 2011-03-18
Posts: 977

Re: [NOT A BUG] Same JS file load from defferent place

Same js files hosted at different place, this make user to upload js file x2.
This way slow down page load and lose bandwith.


Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

#4 2011-05-18 14:18:35

Coscast
Member
From: Germany
Registered: 2010-10-03
Posts: 546

Re: [NOT A BUG] Same JS file load from defferent place

If you're @ /users it loads from /profile/templates but the file is not loaded twice

You're correct when saying that it could be loaded on both places from the same location.
But from the Bandwith/performance ponit of view it would make no difference.

But remark the different version.


sgt-halfsize-banner.jpg

Offline

#5 2011-05-18 15:07:27

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: [NOT A BUG] Same JS file load from defferent place

From the bandwidth/performance point of view, its important for each visitor only once. After that its cached. The files are the same, but in the future they might not be the same, having the js file in different locations is good, except for jquery which i could have only in 1 place, and i think i will in future versions.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#6 2011-07-07 11:26:05

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: [NOT A BUG] Same JS file load from defferent place

Will probably move all jquery files and other 3rdparty javascript to /js in the future.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

Board footer

Powered by FluxBB