]> git.mxchange.org Git - friendica.git/commit
Modify Javascript to improve page loading times
authorZach Prezkuta <fermion@gmx.com>
Sat, 28 Jul 2012 15:57:16 +0000 (09:57 -0600)
committerZach Prezkuta <fermion@gmx.com>
Sat, 28 Jul 2012 15:57:16 +0000 (09:57 -0600)
commit1f09e7ad23f1f3982f44e9b2c9a1e6d08da7f825
tree2242145b843a9ae90625991129dcd40688457550
parent3f39e29e6e74ddbd74a3e415d83b6fce0fa0428e
Modify Javascript to improve page loading times

1. Add template category 'end' that places content right before final </body> tag
2. Move most Javascript from tpl files into one cacheable file, theme.js
3. Load scripts at end of the HTML document instead of in the header
4. Minify several Javascript files

Note that the second and third things were only done for Frost and Frost Mobile. Doing it for every theme means going through every .tpl for every theme and rearranging the Javascript, which is tedious.
132 files changed:
boot.php
include/conversation.php
index.php
js/acl.min.js [new file with mode: 0644]
js/ajaxupload.min.js [new file with mode: 0644]
js/country.min.js [new file with mode: 0644]
js/fk.autocomplete.min.js [new file with mode: 0644]
js/jquery.htmlstream.min.js [new file with mode: 0644]
js/main.min.js [new file with mode: 0644]
js/webtoolkit.base64.min.js [new file with mode: 0644]
library/jquery_ac/friendica.complete.min.js [new file with mode: 0644]
mod/contacts.php
mod/editpost.php
mod/events.php
mod/message.php
mod/photos.php
mod/profile_photo.php
mod/profiles.php
mod/settings.php
mod/wallmessage.php
view/admin_aside.tpl
view/contact_end.tpl [new file with mode: 0644]
view/contacts-end.tpl [new file with mode: 0644]
view/contacts-head.tpl [new file with mode: 0644]
view/cropend.tpl [new file with mode: 0644]
view/end.tpl [new file with mode: 0644]
view/event_end.tpl [new file with mode: 0644]
view/jot-end.tpl [new file with mode: 0644]
view/message-end.tpl [new file with mode: 0644]
view/message-head.tpl [new file with mode: 0644]
view/msg-end.tpl [new file with mode: 0644]
view/photo_edit_head.tpl [new file with mode: 0644]
view/photos_head.tpl [new file with mode: 0644]
view/photos_upload.tpl
view/profed_end.tpl [new file with mode: 0644]
view/profed_head.tpl
view/settings-end.tpl [new file with mode: 0644]
view/settings-head.tpl [new file with mode: 0644]
view/settings_display_end.tpl [new file with mode: 0644]
view/theme/frost-mobile/TODO
view/theme/frost-mobile/acl_selector.tpl [new file with mode: 0644]
view/theme/frost-mobile/admin_aside.tpl
view/theme/frost-mobile/admin_site.tpl
view/theme/frost-mobile/comment_item.tpl
view/theme/frost-mobile/contact_edit.tpl [new file with mode: 0644]
view/theme/frost-mobile/contact_head.tpl
view/theme/frost-mobile/contacts-end.tpl [new file with mode: 0644]
view/theme/frost-mobile/contacts-head.tpl [new file with mode: 0644]
view/theme/frost-mobile/cropbody.tpl [new file with mode: 0644]
view/theme/frost-mobile/cropend.tpl [new file with mode: 0644]
view/theme/frost-mobile/crophead.tpl [new file with mode: 0644]
view/theme/frost-mobile/default.php
view/theme/frost-mobile/end.tpl [new file with mode: 0644]
view/theme/frost-mobile/event_end.tpl [new file with mode: 0644]
view/theme/frost-mobile/event_head.tpl
view/theme/frost-mobile/field_checkbox.tpl [new file with mode: 0644]
view/theme/frost-mobile/field_themeselect.tpl [new file with mode: 0644]
view/theme/frost-mobile/head.tpl
view/theme/frost-mobile/jot-end.tpl [new file with mode: 0644]
view/theme/frost-mobile/jot-header.tpl
view/theme/frost-mobile/jot.tpl
view/theme/frost-mobile/js/acl.js
view/theme/frost-mobile/js/acl.min.js [new file with mode: 0644]
view/theme/frost-mobile/js/fk.autocomplete.min.js [new file with mode: 0644]
view/theme/frost-mobile/js/main.js
view/theme/frost-mobile/js/main.min.js [new file with mode: 0644]
view/theme/frost-mobile/js/theme.js
view/theme/frost-mobile/js/theme.js.old [deleted file]
view/theme/frost-mobile/js/theme.min.js [new file with mode: 0644]
view/theme/frost-mobile/login.tpl
view/theme/frost-mobile/message-end.tpl [new file with mode: 0644]
view/theme/frost-mobile/message-head.tpl [new file with mode: 0644]
view/theme/frost-mobile/msg-header.tpl
view/theme/frost-mobile/oembed_video.tpl [new file with mode: 0755]
view/theme/frost-mobile/photo_edit_head.tpl [new file with mode: 0644]
view/theme/frost-mobile/photos_head.tpl [new file with mode: 0644]
view/theme/frost-mobile/photos_upload.tpl
view/theme/frost-mobile/profed_end.tpl [new file with mode: 0644]
view/theme/frost-mobile/profed_head.tpl
view/theme/frost-mobile/profile_edit.tpl
view/theme/frost-mobile/settings-head.tpl [new file with mode: 0644]
view/theme/frost-mobile/settings_display_end.tpl [new file with mode: 0644]
view/theme/frost-mobile/style.css
view/theme/frost-mobile/theme.php
view/theme/frost-mobile/wallmsg-end.tpl [new file with mode: 0644]
view/theme/frost-mobile/wallmsg-header.tpl
view/theme/frost/acl_selector.tpl [new file with mode: 0644]
view/theme/frost/admin_aside.tpl
view/theme/frost/admin_site.tpl [new file with mode: 0644]
view/theme/frost/comment_item.tpl
view/theme/frost/contact_end.tpl [new file with mode: 0644]
view/theme/frost/contact_head.tpl [new file with mode: 0644]
view/theme/frost/contacts-end.tpl [new file with mode: 0644]
view/theme/frost/contacts-head.tpl [new file with mode: 0644]
view/theme/frost/conversation.tpl
view/theme/frost/cropbody.tpl [new file with mode: 0644]
view/theme/frost/cropend.tpl [new file with mode: 0644]
view/theme/frost/crophead.tpl [new file with mode: 0644]
view/theme/frost/default.php
view/theme/frost/end.tpl [new file with mode: 0644]
view/theme/frost/event_end.tpl [new file with mode: 0644]
view/theme/frost/event_head.tpl [new file with mode: 0644]
view/theme/frost/field_themeselect.tpl [new file with mode: 0644]
view/theme/frost/head.tpl
view/theme/frost/jot-end.tpl [new file with mode: 0644]
view/theme/frost/jot-header.tpl
view/theme/frost/jot.tpl [new file with mode: 0644]
view/theme/frost/js/acl.js [new file with mode: 0644]
view/theme/frost/js/acl.min.js [new file with mode: 0644]
view/theme/frost/js/fk.autocomplete.js [new file with mode: 0644]
view/theme/frost/js/fk.autocomplete.min.js [new file with mode: 0644]
view/theme/frost/js/main.js
view/theme/frost/js/main.min.js [new file with mode: 0644]
view/theme/frost/js/theme.js
view/theme/frost/js/theme.min.js [new file with mode: 0644]
view/theme/frost/login.tpl
view/theme/frost/message-end.tpl [new file with mode: 0644]
view/theme/frost/message-head.tpl [new file with mode: 0644]
view/theme/frost/msg-end.tpl [new file with mode: 0644]
view/theme/frost/msg-header.tpl [new file with mode: 0644]
view/theme/frost/photo_edit_head.tpl [new file with mode: 0644]
view/theme/frost/photos_head.tpl [new file with mode: 0644]
view/theme/frost/photos_upload.tpl
view/theme/frost/profed_end.tpl [new file with mode: 0644]
view/theme/frost/profed_head.tpl [new file with mode: 0644]
view/theme/frost/profile_edit.tpl
view/theme/frost/settings-head.tpl [new file with mode: 0644]
view/theme/frost/settings_display_end.tpl [new file with mode: 0644]
view/theme/frost/theme.php
view/theme/frost/wallmsg-end.tpl [new file with mode: 0644]
view/theme/frost/wallmsg-header.tpl [new file with mode: 0644]
view/wallmsg-end.tpl [new file with mode: 0644]