• R/O
  • SSH
  • HTTPS

tortoisesvn: Commit


Commit MetaInfo

Révision28617 (tree)
l'heure2019-06-24 22:58:53
Auteurxhmikosr

Message de Log

www: remove image deferring.

The gains are negligible nowadays.

Change Summary

Modification

--- trunk/www/Gruntfile.js (revision 28616)
+++ trunk/www/Gruntfile.js (revision 28617)
@@ -63,13 +63,6 @@
6363 ],
6464 dest: '<%= dirs.dest %>/assets/css/pack.css'
6565 },
66- mainJs: {
67- src: ['<%= dirs.src %>/assets/js/vendor/plugins.js',
68- '<%= dirs.src %>/assets/js/no-js-class.js',
69- '<%= dirs.src %>/assets/js/onLoad.js'
70- ],
71- dest: '<%= dirs.dest %>/assets/js/main.js'
72- },
7366 baguetteBox: {
7467 src: ['<%= dirs.src %>/assets/js/vendor/baguetteBox.js',
7568 '<%= dirs.src %>/assets/js/baguetteBox-init.js'
@@ -128,8 +121,7 @@
128121 },
129122 minify: {
130123 files: {
131- '<%= concat.baguetteBox.dest %>': '<%= concat.baguetteBox.dest %>',
132- '<%= concat.mainJs.dest %>': '<%= concat.mainJs.dest %>'
124+ '<%= concat.baguetteBox.dest %>': '<%= concat.baguetteBox.dest %>'
133125 }
134126 }
135127 },
--- trunk/www/source/_includes/footer.html (revision 28616)
+++ trunk/www/source/_includes/footer.html (revision 28617)
@@ -7,8 +7,6 @@
77
88 </div> <!-- .wrapper -->
99
10- <script async src="/assets/js/main.js"></script>
11-
1210 {% if page.includeBaguetteBox %}
1311 <script async src="/assets/js/baguetteBox-pack.js"></script>
1412 {% endif %}
--- trunk/www/source/_includes/sidebar.de.html (revision 28616)
+++ trunk/www/source/_includes/sidebar.de.html (revision 28617)
@@ -33,8 +33,7 @@
3333 <ul>
3434 <li>
3535 <a href="https://sourceforge.net/blog/cca07/">
36- <img class="defer" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-src="/assets/img/SFAward.png" alt="SourceForge.net Community Choice Award" title="SourceForge.net Community Choice Award" width="200" height="45">
37- <noscript><img src="/assets/img/SFAward.png" alt="SourceForge.net Community Choice Award" title="SourceForge.net Community Choice Award" width="200" height="45"></noscript>
36+ <img src="/assets/img/SFAward.png" alt="SourceForge.net Community Choice Award" title="SourceForge.net Community Choice Award" width="200" height="45">
3837 </a>
3938 </li>
4039 <li>
--- trunk/www/source/_includes/sidebar.html (revision 28616)
+++ trunk/www/source/_includes/sidebar.html (revision 28617)
@@ -34,8 +34,7 @@
3434 <ul>
3535 <li>
3636 <a href="https://sourceforge.net/blog/cca07/">
37- <img class="defer" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-src="/assets/img/SFAward.png" alt="SourceForge.net Community Choice Award" title="SourceForge.net Community Choice Award" width="200" height="45">
38- <noscript><img src="/assets/img/SFAward.png" alt="SourceForge.net Community Choice Award" title="SourceForge.net Community Choice Award" width="200" height="45"></noscript>
37+ <img src="/assets/img/SFAward.png" alt="SourceForge.net Community Choice Award" title="SourceForge.net Community Choice Award" width="200" height="45">
3938 </a>
4039 </li>
4140 <li>
--- trunk/www/source/_includes/sidebar.zh.html (revision 28616)
+++ trunk/www/source/_includes/sidebar.zh.html (revision 28617)
@@ -34,8 +34,7 @@
3434 <ul>
3535 <li>
3636 <a href="https://sourceforge.net/blog/cca07/">
37- <img class="defer" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-src="/assets/img/SFAward.png" alt="SourceForge.net Community Choice Award" title="SourceForge.net Community Choice Award" width="200" height="45">
38- <noscript><img src="/assets/img/SFAward.png" alt="SourceForge.net Community Choice Award" title="SourceForge.net Community Choice Award" width="200" height="45"></noscript>
37+ <img src="/assets/img/SFAward.png" alt="SourceForge.net Community Choice Award" title="SourceForge.net Community Choice Award" width="200" height="45">
3938 </a>
4039 </li>
4140 <li>
--- trunk/www/source/assets/css/style.css (revision 28616)
+++ trunk/www/source/assets/css/style.css (revision 28617)
@@ -485,10 +485,6 @@
485485 text-align: left;
486486 }
487487
488-.no-js .defer {
489- display: none;
490-}
491-
492488 /* clearfix and list-unstyled taken from Bootstrap */
493489 .clearfix:before,
494490 .clearfix:after {
--- trunk/www/source/assets/js/onLoad.js (revision 28616)
+++ trunk/www/source/assets/js/onLoad.js (nonexistent)
@@ -1,27 +0,0 @@
1-/* jshint browser: true */
2-
3-(function() {
4- 'use strict';
5-
6- function initOnLoad() {
7- // Original source: https://varvy.com/pagespeed/defer-images.html
8- var imgElement = document.getElementsByTagName('img');
9-
10- for (var i = 0, len = imgElement.length; i < len; i++) {
11- if (imgElement[i].hasAttribute('data-src')) {
12- imgElement[i].setAttribute('src', imgElement[i].getAttribute('data-src'));
13- imgElement[i].removeAttribute('data-src');
14- imgElement[i].className += ' loaded';
15- }
16- }
17- }
18-
19- if (window.addEventListener) {
20- window.addEventListener('load', initOnLoad, false);
21- } else if (window.attachEvent) {
22- window.attachEvent('onload', initOnLoad);
23- } else {
24- window.onload = initOnLoad;
25- }
26-
27-}());
Deleted: svn:eol-style
## -1 +0,0 ##
-native
\ No newline at end of property
Deleted: svn:mime-type
## -1 +0,0 ##
-text/javascript
\ No newline at end of property
--- trunk/www/source/assets/js/no-js-class.js (revision 28616)
+++ trunk/www/source/assets/js/no-js-class.js (nonexistent)
@@ -1,11 +0,0 @@
1-/* jshint browser:true */
2-
3-(function() {
4- 'use strict';
5-
6- var docEl = document.documentElement;
7- var classRE = new RegExp('(^|\\s)no-js(\\s|$)');
8- var className = docEl.className;
9-
10- docEl.className = className.replace(classRE, '$1js$2');
11-})();
Deleted: svn:eol-style
## -1 +0,0 ##
-native
\ No newline at end of property
Deleted: svn:mime-type
## -1 +0,0 ##
-text/javascript
\ No newline at end of property
--- trunk/www/source/assets/js/vendor/plugins.js (revision 28616)
+++ trunk/www/source/assets/js/vendor/plugins.js (nonexistent)
@@ -1,24 +0,0 @@
1-// Avoid `console` errors in browsers that lack a console.
2-(function() {
3- var method;
4- var noop = function () {};
5- var methods = [
6- 'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error',
7- 'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log',
8- 'markTimeline', 'profile', 'profileEnd', 'table', 'time', 'timeEnd',
9- 'timeline', 'timelineEnd', 'timeStamp', 'trace', 'warn'
10- ];
11- var length = methods.length;
12- var console = (window.console = window.console || {});
13-
14- while (length--) {
15- method = methods[length];
16-
17- // Only stub undefined methods.
18- if (!console[method]) {
19- console[method] = noop;
20- }
21- }
22-}());
23-
24-// Place any jQuery/helper plugins in here.
Deleted: svn:eol-style
## -1 +0,0 ##
-native
\ No newline at end of property
Deleted: svn:mime-type
## -1 +0,0 ##
-text/javascript
\ No newline at end of property
--- trunk/www/source/index.html (revision 28616)
+++ trunk/www/source/index.html (revision 28617)
@@ -83,8 +83,7 @@
8383 get decrypted to the other folder.
8484 </p>
8585 <p>
86- <img class="defer" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-src="/assets/img/news/cryptsync_info.jpg" alt="CryptSync overview" width="500" height="250">
87- <noscript><img src="/assets/img/news/cryptsync_info.jpg" width="500" height="250" alt="CryptSync overview"></noscript>
86+ <img src="/assets/img/news/cryptsync_info.jpg" width="500" height="250" alt="CryptSync overview">
8887 </p>
8988 <p>
9089 More information here about <a href="https://tools.stefankueng.com/CryptSync.html">CryptSync</a>.
Afficher sur ancien navigateur de dépôt.