-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
List of breaking changes for Likely 3 #76
Comments
What does it mean exactly? I didn't get it right, I think. |
I think of doing Have I explained OK or is something unclear? |
BTW, I don’t yet know if this behavior is OK for users that use Likely in SPAs. I’ll try collecting more data when we get nearer to 3.0. |
Yep, this seems okay. Thank you. It completely changes the way Likely's being added to the page, and I think about flashes of unstyled content. Correct me if I'm wrong. Browser gets button in html: <div class="likely">
<div class="facebook">Share</div>
<div class="twitter">Tweet</div>
<div class="gplus">+1</div>
<div class="vkontakte">Share</div>
<div class="pinterest">Pin</div>
<div class="odnoklassniki">Like</div>
<div class="telegram">Send</div>
</div> In the previous scheme we had css loaded in the head section, and to the moment browser parsed this html, all styles were ready to be applied to it. Now we have a script which adds styles dynamically to the head, and usually scripts are in the end of the page, so at this moment we have no styles for button, right? |
Hm, good point, thanks! I’ll discuss this with @ilyabirman later, probably we won’t do bundling. |
Or probably there won’t be: as far as I remember, the browser don’t display anything untill all the HTML is parsed and all the scripts are executed, so if we add styles synchronously, we won’t experience anything. (Should be tested though.) |
Added a new point:
|
Added a new point following a discussion with @ilyabirman:
|
Could this be optional? (on by default, if you will). I think SPA developers may want to start up buttons in custom moment of time (because of complex app init) |
Also, I think I got the main idea of @ilyabirman — it should be less interfaces as possible: instead of 2 files it should be one, instead of handy initiate it should be auto and etc. I totally agree with it! As developers we face challenges (such as FOUC) and have to tackle it instead of doing everything the same as before. |
Yeah, |
Closed in favor of #163 |
Likely 3 should include some major feature additions, and we want to bind several breaking changes to this release. There’s neither a concrete date nor a concrete list of features for this version.
likely.initate()
which is an alias forlikely.initiate()
and was originally introduced by a mistake.likely()
in favor oflikely.initiate()
(see Clarify section about using API #82 (comment))..likely_visible
and.likely_ready
into a single class: it’s unclear why they are ever separate. (This could probably be a large breaking change because people can rely on one of these classes.)The list will most likely be expanded in the future.
The text was updated successfully, but these errors were encountered: