Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Power Lifting Lever Belt
SkullVamp
Updated:
Saturday at 10:32 PM
Ad icon
port.lk Domain for sale
Lankan-Tech
Updated:
Saturday at 3:55 PM
Colombo
Kaduwela - Two Storey House for Sale
dilrasan
Updated:
Thursday at 2:23 PM
Ad icon
Wechat qr verification
Pawan2005
Updated:
Thursday at 1:28 AM
🚀 GOOGLE AI PRO 18 MONTHS ACTIVATION 🚀
sayuru bandara
Updated:
Wednesday at 5:34 PM
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Help
Wireless ADSL router
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="mohmdrilwan" data-source="post: 2511157" data-attributes="member: 68443"><p><span style="color: orange">When you are working with code, such as JavaScript, most of it is included in the file you’re working on. But this isn’t always the best way to work. A large site can have several files that contain the same JavaScript functions. But what if you need to update this code? You would need to update it on every single page, which is both time-consuming and error-prone. You can eliminate this problem by linking to a file that contains all your common code in one place. </span></p><p><span style="color: orange"></span></p><p><span style="color: orange"></span></p><p><span style="color: orange">In this way you gain consistency and the ability to quickly make changes to your entire site. The Phireworx site links to a file called common.js, which contains the JavaScript code and functions we want to run on every page. The more you can break your site into manageable modular segments, the easier it is to implement changes. </span></p><p><span style="color: orange"></span></p><p><span style="color: orange"></span></p><p><span style="color: orange">By linking scripts into the document, in addition to the maintainability issues they enable, they also speed up download times, since the script only has to be downloaded once, rather than on every single page that uses them.</span></p><p><span style="color: sandybrown">_________________</span></p><p><span style="color: sandybrown">M.Rilwan</span></p></blockquote><p></p>
[QUOTE="mohmdrilwan, post: 2511157, member: 68443"] [COLOR=orange]When you are working with code, such as JavaScript, most of it is included in the file you’re working on. But this isn’t always the best way to work. A large site can have several files that contain the same JavaScript functions. But what if you need to update this code? You would need to update it on every single page, which is both time-consuming and error-prone. You can eliminate this problem by linking to a file that contains all your common code in one place. In this way you gain consistency and the ability to quickly make changes to your entire site. The Phireworx site links to a file called common.js, which contains the JavaScript code and functions we want to run on every page. The more you can break your site into manageable modular segments, the easier it is to implement changes. By linking scripts into the document, in addition to the maintainability issues they enable, they also speed up download times, since the script only has to be downloaded once, rather than on every single page that uses them.[/COLOR] [COLOR=sandybrown]_________________ M.Rilwan[/COLOR] [/QUOTE]
Insert quotes…
Verification
Dahaya deken beduwama keeyada?
Post reply
Top
Bottom