Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 10 Years, 1 Month, 2 Weeks ago Combine "prototype.js "with "general.js"
#1
Solved: 10 Years, 1 Month, 2 Weeks ago
Is it possible to combine
general.js prototype.js popup_menu.js
into one file?
www.vubscs.com ( A new way of Mybb)
#2
Solved: 10 Years, 1 Month, 2 Weeks ago
Sure. Just combine the files and edit the headerinclude template to link to the new combined file.
#3
Solved: 10 Years, 1 Month, 2 Weeks ago
Does I need to specify version name with it?
as in genral.js?ver=234 (e.g)
or just name my new file as
global.js and link it in header include?
www.vubscs.com ( A new way of Mybb)
#4
Solved: 10 Years, 1 Month, 2 Weeks ago
You don't need to add a version, but honestly I see little need for doing this, it's one more thing you'll have to remember to do when you upgrade, and your browser will cache the javascript anyway so it's not going to be downloaded every page load.
MyReactions - All Plugins

Can you still feel the butterflies?

Free never tasted like pudding.
#5
Solved: 10 Years, 1 Month, 2 Weeks ago
Any side effect of caching javascript? as mybb default scripts are not cached
www.vubscs.com ( A new way of Mybb)
#6
Solved: 10 Years, 1 Month, 2 Weeks ago
No, there are no side effects. Much the opposite actually.

And yes they are. JavaScript, CSS, images, etc. are all cached by the browser.
#7
Solved: 10 Years, 1 Month, 2 Weeks ago
Thanks solved
www.vubscs.com ( A new way of Mybb)
#8
Solved: 10 Years, 1 Month, 2 Weeks ago
(2011-09-02, 08:13 PM)sunjava1 Wrote: Any side effect of caching javascript? as mybb default scripts are not cached

They are, your browser caches the javascript and CSS and usually images on every site you visit so they load faster next time.
MyReactions - All Plugins

Can you still feel the butterflies?

Free never tasted like pudding.


Forum Jump:


Users browsing this thread: 1 Guest(s)