plugin:editonlink
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:editonlink [2018-11-17 18:20] – [Development] sancaya | plugin:editonlink [2020-09-26 11:29] (current) – lastupdate Aleksandr | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- plugin ---- | ---- plugin ---- | ||
- | description: | + | description: |
author | author | ||
email : alex@obschy.ru | email : alex@obschy.ru | ||
type : action | type : action | ||
- | lastupdate : 2018-11-17 | + | lastupdate : 2019-02-16 |
compatible : Greebo, " | compatible : Greebo, " | ||
tags : button, css, editing, links, shortcut, tooltip | tags : button, css, editing, links, shortcut, tooltip | ||
Line 67: | Line 67: | ||
=== Change Log === | === Change Log === | ||
+ | * **2019-02-16** //v1.3.4//. Split by character instead of regex. | ||
+ | * **2019-02-16** //v1.3.3//. Final polishing & Version up. | ||
+ | * **2019-02-15** //v1.3.2//. Search narrowed. | ||
+ | * **2019-02-15** //v1.3.1//. In case there could be other ' | ||
+ | * **2019-02-15** //v1.3//. Bug corrected: when nice URL rewriting is off, link parameters shouldn' | ||
+ | * **2018-12-12** //v1.2//. Some workarounds for Firefox invisibility bug. | ||
* **2018-11-17** //v1.1//. Support for multiline links, ctrl-click, right-click. | * **2018-11-17** //v1.1//. Support for multiline links, ctrl-click, right-click. | ||
* In case of multiline link, clientBoundingRect top-right might not give the correct position of the button; so I use adding another element with the same positioning on the link click, to learn the actual coordinates of the ": | * In case of multiline link, clientBoundingRect top-right might not give the correct position of the button; so I use adding another element with the same positioning on the link click, to learn the actual coordinates of the ": | ||
- | * Using things like ctrl-click and right-click, | + | * Using things like ctrl-click and right-click, |
* **2018-11-16** //v1.0.5//. More contrast for the hover underline wave | * **2018-11-16** //v1.0.5//. More contrast for the hover underline wave | ||
* **2018-11-15** //v1.0.4//. Underline wave style adjusted | * **2018-11-15** //v1.0.4//. Underline wave style adjusted | ||
Line 80: | Line 86: | ||
To discuss bugs or issues, please use the github [[https:// | To discuss bugs or issues, please use the github [[https:// | ||
+ | |||
+ | Due to a bug (at least, in some versions of modern Firefox & clones), in rare cases, some elements can become (intermittently) invisible in the browser window. Apparently, this has nothing to do with this plugin. | ||
=== ToDo/Wish List === | === ToDo/Wish List === | ||
Line 89: | Line 97: | ||
//Q.// Would buttons added to **all** those links slow down the page? | //Q.// Would buttons added to **all** those links slow down the page? | ||
- | //A.// Not at all. The plugin is very tiny and well optimized. Javascript uses only one event listener regardless of how much links are there, and it' | + | //A.// Not at all. In general, there are several reasons why pages can get slower with plugins and other bells and whistles: |
+ | |||
+ | * Loading larger contents. In this case, the plugin is very tiny (about 3 kb non gzipped). | ||
+ | * Loading of additional files. For example, if a page requests additional pictures, you need to wait while the request to the server gets there and back. It can slow the page rendering indeed, therefore DokuWiki transforms small pictures into inline CSS (encoded text in CSS), which wouldn' | ||
+ | * Heavy Javascript | ||
+ | * CSS styling takes some (small) time, so the more CSS, the slower the page. However, modern browsers are very fast in applying the same styles to many elements; so even if there are hundreds of links on your page, I doubt you could notice any difference. | ||
+ | * Inserting elements in DOM can be somehow time-consuming -- especially when repeated many times. In other words, Javascript can insert elements in your page, and then every time the browser has to re-calculate and re-construct everything. But in this plugin, the buttons are pseudo-elements -- CSS styles, not real elements, they don't get inserted in the DOM. The only insertion happens on clicking the link -- and it takes just few milliseconds. | ||
+ | |||
+ | Conclusion: this plugin just couldn' | ||
===== Discussion ===== | ===== Discussion ===== | ||
- | If the link contains a parameter -- like " | + | If the link contains a parameter -- like " |
An interesting development could be to show a little popup menu when clicking that button. (It would be painted by JS, only by the click, thus having no influence on the speed of the page). | An interesting development could be to show a little popup menu when clicking that button. (It would be painted by JS, only by the click, thus having no influence on the speed of the page). |
plugin/editonlink.1542475223.txt.gz · Last modified: 2018-11-17 18:20 by sancaya